You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
this doesnt work as expected with react, react seems unable to group setState calls outside of a render cycle. Preact can do this, maybe react 16 will improve this during its dot releases.
However, this can be achieved in React with: ReactDOM.unstable_batchedUpdates(), which, as the name suggests, is kinda unstable. Needs watching and adoption. If this a performance issue for somebody, i recommend to try with Preact.
As of lap20 state handling improved anyway, setting state synchronously where allowed.
Group all state updates in a given render cycle together
The text was updated successfully, but these errors were encountered: