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
-
Reproduction
.
Steps to reproduce the bug
src/store.ts
components/comp.vue
app.vue
and place multiple of that component (or any component that consumesstore.ts
)npm run dev
Expected 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 triedwatch
withimmidiate:true
anduseFetch
too. same behavier.Beta Was this translation helpful? Give feedback.
All reactions