store value is wrong when appstate change #2638
Unanswered
alainib
asked this question in
Bug report
Replies: 2 comments
-
@alainib we need more context here: pure react, nextjs app? would you mind creating a minimal repro on stactkblitz? |
Beta Was this translation helpful? Give feedback.
0 replies
-
it's on react native "react-native": "0.74.3", does we need to persist/hydrate/rehydrate the zustand store each time ? i will try to make a repo fast :) thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
i have a store
in app.tsx
as long as i keep the app opened and login / logout using
setIsUserConnected
theisUserConnected
value is good.now if i keep the user connected and put app in background and open it back the value get lost
how to handle this properly please ?
Reproduction Link
www.nolinkyet.sorry
Beta Was this translation helpful? Give feedback.
All reactions