Skip to content

how to let sub app use parent app's store? #2589

Closed Answered by posva
luqiudi asked this question in Help and Questions
Discussion options

You must be logged in to vote

The important part is using only one instance of pinia (only one const pinia = createPinia() and maybe multiple app1.use(pinia); app2.use(pinia). That's where the state is held. Depending on your bundling, you might want to mark pinia as external in sub dependencies

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zisvh
Comment options

@luqiudi
Comment options

Answer selected by luqiudi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants