Question: init function call multiple times in StrictMode #50
Unanswered
xiaoxiangmoe
asked this question in
Q&A
Replies: 1 comment
-
This is expected. See the React docs for what Functions passed to As for the |
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
-
run codes in development mode and strict mode
It will print
init function in useObservable and useObservableState are called twice.
Is it concurrent mode safe? Is it work as intended?
Beta Was this translation helpful? Give feedback.
All reactions