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

useStorage is not reactive when ssrHandlers is true #3957

Open
7 tasks done
kingyue737 opened this issue May 8, 2024 · 1 comment
Open
7 tasks done

useStorage is not reactive when ssrHandlers is true #3957

kingyue737 opened this issue May 8, 2024 · 1 comment

Comments

@kingyue737
Copy link

Describe the bug

  1. Setting value of the returned state of useStorage does not update cookie
  2. Updating cookie manually does not update the value of the returned state of useStorage

Reproduction

https://stackblitz.com/edit/nuxt-starter-yydlvd

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (6) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vueuse/nuxt: ^10.9.0 => 10.9.0

Used Package Manager

npm

Validations

@CharlesChanV
Copy link

CharlesChanV commented May 9, 2024

it looks like that storage has been changed and break the logic which will update the value

image

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

No branches or pull requests

2 participants