Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
But is it correct that it can be used for app-level needs to avoid passing Pinia instance and instead get it from app injection context, even in SSR applications? There is no mention in official documentation regarding intended usage. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’ve noticed some parts in documentation regarding SSR that I think could benefit from changes to make them more understandable:
setup()
, there is example where it says you need to pass Pinia instance touseStore
call inside vue-router guard, but that is not necessary as of vue-router 4.2 since guards are inject-aware and proper Pinia instance would be injected. Is that correct? Should that be changed to use some other example?useStore
insideapp.runWithContext
, is that true? Can this section be expanded to include example of that approach?I’m willing to submit changes to documentation if you think these statements are correct.
Beta Was this translation helpful? Give feedback.
All reactions