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

Function discreteUpdates$1

lib/assets/react-source/development/react.js:25576–25591  ·  view source on GitHub ↗
(fn, a, b, c, d)

Source from the content-addressed store, hash-verified

25574 }
25575 }
25576 function discreteUpdates$1(fn, a, b, c, d) {
25577 var prevExecutionContext = executionContext;
25578 executionContext |= DiscreteEventContext;
25579
25580 try {
25581 // Should this
25582 return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d));
25583 } finally {
25584 executionContext = prevExecutionContext;
25585
25586 if (executionContext === NoContext) {
25587 // Flush the immediate callbacks that were scheduled during this batch
25588 flushSyncCallbackQueue();
25589 }
25590 }
25591 }
25592 function unbatchedUpdates(fn, a) {
25593 var prevExecutionContext = executionContext;
25594 executionContext &= ~BatchedContext;

Callers

nothing calls this directly

Calls 2

runWithPriority$1Function · 0.85
flushSyncCallbackQueueFunction · 0.85

Tested by

no test coverage detected