Thanks!
Interesting discussion of some problems with the current implementation of Recoil https://github.com/facebookexperimental/Recoil/issues/12#issuecomment-630980760
I am extremely confused by Recoil. The name doesn't help either.
yeah I don’t completely understand what their batching strategy is
it looks like it’s trying to hook into React’s batching behavior, but sort of manage its own state change batching
I’m guessing that they don’t want to completely own batching because then they can’t piggy back on React’s scheduler as easily.
but naively firing setState multiple times is also bad because batching isn’t currently in the mainline release
I am not even sure what happened with batchedUpdates
is it supported even in the experimental or not