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
React batches all component updates if they become dirty during an event-callback (events are also batched). However, this is not exposed for use with external events, such as setTimeout, addEventHandler, AJAX-replies, non-React DOM events or any other events, and it seems only natural that it should extend to those too.
React batches all component updates if they become dirty during an event-callback (events are also batched). However, this is not exposed for use with external events, such as
setTimeout
,addEventHandler
, AJAX-replies, non-React DOM events or any other events, and it seems only natural that it should extend to those too.I see two obvious solutions:
Export
React.batchedUpdates(callback, param)
Export a callback factory
React.batchedCallback(callback, args...)
Thoughts?
I'm guessing this belongs with #326
The text was updated successfully, but these errors were encountered: