state empty on first render #2568
Unanswered
ImamJanjua
asked this question in
Bug report
Replies: 2 comments
-
|
@ImamJanjua context? pure react? nextjs? are you using persist middleware? Without that info we can not help you |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@ImamJanjua What is the default state value, it might be an empty value and it sets the value from the local or API state value in the component. Could check it? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, is it normal the state can be empty on the first render?
I am just calling it in the component like that const profileImage = useTestStore((state) => state.profileImage)
Bildschirmaufnahme.2024-05-26.um.17.20.20.mov
Beta Was this translation helpful? Give feedback.
All reactions