effectScope (createSharedComposable) and Cross-request state pollution (SSR) #8237
Unanswered
dev-abota
asked this question in
Help/Questions
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
TLDR: Is
createSharedComposablevulnerable tocross-request state pollutiononNUXT SSR?Been reading the docs on
cross-request state pollutionhttps://vuejs.org/guide/scaling-up/ssr.html#cross-request-state-pollution
They state that this example
https://vuejs.org/guide/scaling-up/state-management.html#simple-state-management-with-reactivity-api
is vulnerable to
cross-request state pollutiononSSR.I've been using
createSharedComposablewhich is described in this RFChttps://github.com/vuejs/rfcs/blob/master/active-rfcs/0041-reactivity-effect-scope.md
Can anyone tell me if this
createSharedComposableis vulnerable tocross-request state pollutiononSSR?If the answer is
yes, this should be clearly stated in the@vueusedocshttps://vueuse.org/shared/createSharedComposable/
mainly because
vueuseis advertised asReally hoping to get an answer on this 🙏
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions