Using pinia inside component library #2164
Unanswered
sethjwilliamson
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have two repositories. The first repository is an actual app website. The other is a component library that contains all of the components that will be used inside the website.
I am trying to make it so all states are instantiated on the parent repository. Then the components inside the component library need to have access to these pinia objects.
How I'm currently thinking about it is that the interface would be defined in the component library then would be implemented on the parent repository.
This is how it's set up in my repositories right now.
With this set up, accessing the state store on the parent repository is obviously very easy.
But I'm not sure how to set it up so that the store is accessible to be able to do the same thing on the component repository.
Beta Was this translation helpful? Give feedback.
All reactions