MCPcopy Create free account
hub / github.com/reactjs/react-rails / batchedEventUpdates$1

Function batchedEventUpdates$1

lib/assets/react-source/development/react.js:25561–25575  ·  view source on GitHub ↗
(fn, a)

Source from the content-addressed store, hash-verified

25559 }
25560 }
25561 function batchedEventUpdates$1(fn, a) {
25562 var prevExecutionContext = executionContext;
25563 executionContext |= EventContext;
25564
25565 try {
25566 return fn(a);
25567 } finally {
25568 executionContext = prevExecutionContext;
25569
25570 if (executionContext === NoContext) {
25571 // Flush the immediate callbacks that were scheduled during this batch
25572 flushSyncCallbackQueue();
25573 }
25574 }
25575 }
25576 function discreteUpdates$1(fn, a, b, c, d) {
25577 var prevExecutionContext = executionContext;
25578 executionContext |= DiscreteEventContext;

Callers

nothing calls this directly

Calls 2

fnFunction · 0.85
flushSyncCallbackQueueFunction · 0.85

Tested by

no test coverage detected