Skip to content

useEffect not working when mixed with useState #1014

Closed Answered by dai-shi
GuessEver asked this question in Bug report
Discussion options

You must be logged in to vote

I'm not sure if this bug persists in v2, but v2 doesn't support react < 18 anyway.
So, I guess this bug is something we won't fix.

  • add {sync:true} to useSnapshot options

That sounds like a reasonable workaround if that solves.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GuessEver
Comment options

Answer selected by GuessEver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants