-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid stateful singletons in the SSR #2664
Comments
Hi, @cmeyertons does it causes any side effects in Your case? I mean:
Please provide us with more info - what exactly do You recommend to change and what kind of issues it causes? |
It's probably related to https://ssr.vuejs.org/guide/structure.html#avoid-stateful-singletons, correct? I think we're safe with the note they posted:
Basically, this is our case. I'm not sure if at this point we can easily refactor Moreover, there are other singletons like |
Related: #2522 |
Current behavior
The same Vuex store instance is shared across requests -- because it contains users specific things like
cart
Expected behavior
The vuex store should follow vue's recommendations.
https://ssr.vuejs.org/guide/data.html
The text was updated successfully, but these errors were encountered: