react

"mulling over state management stuff"
Aron 2020-05-19T10:36:00.232Z

https://youtu.be/yeyiA9U8Ep8

orestis 2020-05-19T11:07:32.232500Z

Thanks!

pesterhazy 2020-05-19T18:56:01.233Z

Interesting discussion of some problems with the current implementation of Recoil https://github.com/facebookexperimental/Recoil/issues/12#issuecomment-630980760

Aron 2020-05-19T20:44:02.233500Z

I am extremely confused by Recoil. The name doesn't help either.

lilactown 2020-05-19T21:38:11.233900Z

yeah I don’t completely understand what their batching strategy is

lilactown 2020-05-19T21:38:57.234400Z

it looks like it’s trying to hook into React’s batching behavior, but sort of manage its own state change batching

lilactown 2020-05-19T21:40:23.235900Z

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.

lilactown 2020-05-19T21:40:52.236500Z

but naively firing setState multiple times is also bad because batching isn’t currently in the mainline release

Aron 2020-05-19T22:55:45.236800Z

I am not even sure what happened with batchedUpdates

Aron 2020-05-19T22:55:58.237100Z

is it supported even in the experimental or not