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

Function unbatchedUpdates

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

Source from the content-addressed store, hash-verified

22030 }
22031 }
22032 function unbatchedUpdates(fn, a) {
22033 var prevExecutionContext = executionContext;
22034 executionContext &= ~BatchedContext;
22035 executionContext |= LegacyUnbatchedContext;
22036
22037 try {
22038 return fn(a);
22039 } finally {
22040 executionContext = prevExecutionContext;
22041
22042 if (executionContext === NoContext) {
22043 // Flush the immediate callbacks that were scheduled during this batch
22044 flushSyncCallbackQueue();
22045 }
22046 }
22047 }
22048 function flushSync(fn, a) {
22049 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
22050 {

Callers 2

unmountComponentAtNodeFunction · 0.85

Calls 2

flushSyncCallbackQueueFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected