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
Overwrite batched updates with the following code: ReactDOM.unstable_batchedUpdates = callback => callback()
Batched updates aren't actually overwritten.
Reasoning
I recognize that this may not be classified as bug because it isn't a documented feature but I have tried to search for a different solution but to no avail. Fixing this behavior can open a new way of using React. I tried writing on Stack Overflow and writing to @gaearon.
I have a number of arguments which support the disabling of batched updates in event handlers and in effects initialization. If anybody is willing to read a document and consider this scenario I am willing to write an RFC.
erusev, garrettmaring, sanehab, omarabid and wgg-maxerusevLRNZ09, avocade and MBelniak