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

Function discreteUpdates

docs/external/js/react-dom.development.js:798–811  ·  view source on GitHub ↗
(fn, a, b, c, d)

Source from the content-addressed store, hash-verified

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;
801
802 try {
803 return discreteUpdatesImpl(fn, a, b, c, d);
804 } finally {
805 isInsideEventHandler = prevIsInsideEventHandler;
806
807 if (!isInsideEventHandler) {
808 finishEventHandler();
809 }
810 }
811 }
812 function flushDiscreteUpdatesIfNeeded(timeStamp) {
813 // event.timeStamp isn't overly reliable due to inconsistencies in
814 // how different browsers have historically provided the time stamp.

Callers 1

dispatchDiscreteEventFunction · 0.85

Calls 2

discreteUpdatesImplFunction · 0.85
finishEventHandlerFunction · 0.85

Tested by

no test coverage detected