SSR does not works on pinia with Nuxt on repeated component #2693
Unanswered
ehsanonline
asked this question in
Help and 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.
-
Reproduction
.
Steps to reproduce the bug
src/store.tscomponents/comp.vueapp.vueand place multiple of that component (or any component that consumesstore.ts)npm run devExpected behavior
output on initial load from ssr:
456
456
Actual behavior
page ssr output:
456
123
page output after one second:
456
456
first component works fine with ssr, but second one is not. page source code for second component is 123 which is bad for ssr.
Additional information
instead of
onServerPrefetch,i triedwatchwithimmidiate:trueanduseFetchtoo. same behavier.Beta Was this translation helpful? Give feedback.
All reactions