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

Function batchedEventUpdates

docs/external/js/react-dom.development.js:782–797  ·  view source on GitHub ↗
(fn, a, b)

Source from the content-addressed store, hash-verified

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
785 // fully completes before restoring state.
786 return fn(a, b);
787 }
788
789 isBatchingEventUpdates = true;
790
791 try {
792 return batchedEventUpdatesImpl(fn, a, b);
793 } finally {
794 isBatchingEventUpdates = false;
795 finishEventHandler();
796 }
797 } // This is for the React Flare event system
798 function discreteUpdates(fn, a, b, c, d) {
799 var prevIsInsideEventHandler = isInsideEventHandler;
800 isInsideEventHandler = true;

Calls 2

finishEventHandlerFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected