Skip to content
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

useState is not reactive #169

Closed
Rigo-m opened this issue Nov 24, 2021 · 0 comments · Fixed by nuxt/framework#2134
Closed

useState is not reactive #169

Rigo-m opened this issue Nov 24, 2021 · 0 comments · Fixed by nuxt/framework#2134

Comments

@Rigo-m
Copy link
Contributor

Rigo-m commented Nov 24, 2021

Environment

Any nuxt2 + bridge environment

Reproduction

codesandbox

Describe the bug

useState creates a new nuxtApp.payload.useState entry automatically via toRef, but it's not reactive (computed and watch methods doesn't trigger). Fixable via the set composable.

Additional context

Related to vuejs/composition-api#855

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant