Skip to content

useState is not reactive #169

Closed
nuxt/framework
#2134
@Rigo-m

Description

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

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions