React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks #3280
Replies: 1 comment 1 reply
-
|
First thing first, use hook naming convention const updateLogged = useAppState((state) => state.updateLogged); |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello zustand team. i'm facing with error. I created index.ts with content (
)
and i'm using inside loginScreen in here:
If i comment line updateLogged(true); and replace by appState.getState().updateLogged(true); will be okey. but if i use updateLogged(true) i will facing with error : "React has detected a change in the order of Hooks called by....". pls help me
Beta Was this translation helpful? Give feedback.
All reactions