Skip to content
Discussion options

You must be logged in to vote

The store is supplied only when using the Vuex one (so you have the /src/store folder).
In your case, you are creating Pinia in a boot file and correctly exporting the store. So wherever you need it, just import it from the boot file. Example: import { pinia } from 'boot/<your-pinia-boot-file>'. Just make sure that the pinia boot file is placed to run before all others that import from it.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@donPuerto
Comment options

Comment options

You must be logged in to vote
1 reply
@donPuerto
Comment options

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