Currently, I am working on some analytical tasks and one of the key elements that needs to be accessed by multiple child elements is the 'link position'. Here is an example to illustrate this:
<Page>
<MyComponent linkPosition='TopSection''>
<SomeThing>
<MyLink />
</SomeThing>
</MyComponent>
<MyComponent linkPosition='BottomSection''>
<SomeThing>
<MyLink />
</SomeThing>
</MyComponent>
</Page>
In order for components like MyLink
to function properly, they need to access the linkPosition
attribute. These components are often buried deep within various <slot>
s and levels, which makes it cumbersome to manually pass down this information.
Just as a point of reference, we are utilizing Vuex in this scenario.