Skip to content

useStore after await causes Cross-Request State Pollution #2077

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

You must be logged in to vote

Apperently it is mentioned here in the documentation:
https://pinia.vuejs.org/cookbook/composing-stores.html#shared-actions

"Since actions can be asynchronous, make sure all of your useStore() calls appear before any await. Otherwise, this could lead to using the wrong pinia instance in SSR apps"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rafaellages-hotmart
Comment options

@posva
Comment options

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