4 ms·
The article was a whole lot of nothing, but TIL that React doesn't already merge/coalesce overlapping `setState` operations. Sounds like Fiber will start doing
by jinushaun 10y ago
The article was a whole lot of nothing, but TIL that React doesn't already merge/coalesce overlapping `setState` operations. Sounds like Fiber will start doing that.
- danabramov 10y agoReact does merge setState if they are within an event handler. It goes that more aggressively in Fiber though because setState is deferred.