useLocalStorage or useSessionStorage inside pinia store always rewrite refs to default using nuxt #2889
-
Reproductionhttps://codesandbox.io/p/devbox/yjgfrk Steps to reproduce the bug
Expected behaviorIt should persists data Actual behaviorInside a pinia store, firstly it has the good value then it initializes again and overrides with the default one. Additional informationThe goal I try to achieve is to persists data for a session and keep my store synced. |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jan 15, 2025
Replies: 1 comment 1 reply
-
You probably need |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
existe-deja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably need
skipHydrate