MCPcopy Index your code
hub / github.com/microsoft/SandDance / discreteUpdates$1

Function discreteUpdates$1

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

Source from the content-addressed store, hash-verified

22014 }
22015 }
22016 function discreteUpdates$1(fn, a, b, c, d) {
22017 var prevExecutionContext = executionContext;
22018 executionContext |= DiscreteEventContext;
22019
22020 try {
22021 // Should this
22022 return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d));
22023 } finally {
22024 executionContext = prevExecutionContext;
22025
22026 if (executionContext === NoContext) {
22027 // Flush the immediate callbacks that were scheduled during this batch
22028 flushSyncCallbackQueue();
22029 }
22030 }
22031 }
22032 function unbatchedUpdates(fn, a) {
22033 var prevExecutionContext = executionContext;
22034 executionContext &= ~BatchedContext;

Callers

nothing calls this directly

Calls 2

runWithPriority$1Function · 0.85
flushSyncCallbackQueueFunction · 0.85

Tested by

no test coverage detected