zustand and local storage #2522
Unanswered
yassine-ramla
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@yassine-ramla would you mind sharing us a minimal repro on stackblitz? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i have the following store:
and the following component:
the problem is even when i change the value of the "theme" to "numbers" by checking radio button and it's value changes in the local storage, when i refresh the page, it takes it default value and the condition ''theme === "numbers"'' is false, i think it should look in the local storage first, how can i fix that?
Beta Was this translation helpful? Give feedback.
All reactions