We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
useState
ssr: false
https://stackblitz.com/~/github.com/mitjans/nuxt-repro
nuxt.config.ts
ssr: true
Further looking into this....
The text was updated successfully, but these errors were encountered:
I have the same issue
Sorry, something went wrong.
Looks like the problem is introduced in c545c1d#diff-07c29c3dc0b35942d77d28aed5d8aea7be262649ba1f076712ad8391acf50c79L255-L260
Changing the payload from shallowReactive back to reactive seems to solve the problem.
payload
shallowReactive
reactive
My apologies! Until the next patch, you can work around by creating ~/plugins/payload-reactivity.client.ts with the following content:`
~/plugins/payload-reactivity.client.ts
export default defineNuxtPlugin(nuxtApp => { const payload = nuxtApp.payload for (const key in ['_errors', 'data']) { if (!isReactive(payload[key])) { payload[key] = shallowReactive(payload[key]) } } if (!isReactive(payload.state)) { payload.state = reactive(payload.state) } })
danielroe
Successfully merging a pull request may close this issue.
Environment
Reproduction
https://stackblitz.com/~/github.com/mitjans/nuxt-repro
Describe the bug
nuxt.config.ts
and changessr: true
tossr: false
Additional context
Further looking into this....
The text was updated successfully, but these errors were encountered: