Skip to content

[Nuxt 3] How to use Pinia outside of a component? #2379

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

You must be logged in to vote

Ensure app.use(pinia) is called before any useStore() function is called or manually call setActivePinia(pinia) before but you might encounter missing things like plugins. Otherwise, refer to this guide

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@onurusluca
Comment options

@posva
Comment options

@onurusluca
Comment options

@posva
Comment options

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