Whether the pinia instance must be passed in to use onserverprefetch under ssr,and whether the failure to pass will cause status contamination #1991
Answered
by
posva
guaqiu5
asked this question in
Help and Questions
-
That's what I'm using at the moment:
Will not passing down pinia instances like " useUserStore(pinia)" from ssr cause state contamination? |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Feb 13, 2023
Replies: 1 comment
-
Not in this case because you are within |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
guaqiu5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not in this case because you are within
setup()
. Passing the pinia on SSR is only necessary outside of setup to ensure the correct pinia context is used