MCPcopy Create free account
hub / github.com/microsoft/SandDance / batchedUpdates

Function batchedUpdates

docs/external/js/react-dom.development.js:766–781  ·  view source on GitHub ↗
(fn, bookkeeping)

Source from the content-addressed store, hash-verified

764 }
765
766 function batchedUpdates(fn, bookkeeping) {
767 if (isInsideEventHandler) {
768 // If we are currently inside another batch, we need to wait until it
769 // fully completes before restoring state.
770 return fn(bookkeeping);
771 }
772
773 isInsideEventHandler = true;
774
775 try {
776 return batchedUpdatesImpl(fn, bookkeeping);
777 } finally {
778 isInsideEventHandler = false;
779 finishEventHandler();
780 }
781 }
782 function batchedEventUpdates(fn, a, b) {
783 if (isBatchingEventUpdates) {
784 // If we are currently inside another batch, we need to wait until it

Callers 1

Calls 3

batchedUpdatesImplFunction · 0.85
finishEventHandlerFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected