Nuxt 3: When is a store considered to be "outside of setup()
" and I have to use $pinia
?
#2299
Unanswered
oemer-aran
asked this question in
Help and Questions
Replies: 3 comments 4 replies
-
Same question. It is unclear what "outside" means, and why it needs |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any insides? Maybe @danielroe |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also do you know how to actually use $pinia inside route middleware? |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
The docs do not answer this clearly: https://pinia.vuejs.org/ssr/nuxt.html#using-the-store-outside-of-setup
So here are the cases, when I don't know if I have to use
$pinia
from the nuxt context:Related question:
$pinia
when you shouldn't?$pinia
to be always "safe"?Ultimately, this might be just a request to improve the docs.
Beta Was this translation helpful? Give feedback.
All reactions