MCPcopy Create free account
hub / github.com/reactjs/react-rails / unbatchedUpdates

Function unbatchedUpdates

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

Source from the content-addressed store, hash-verified

25590 }
25591 }
25592 function unbatchedUpdates(fn, a) {
25593 var prevExecutionContext = executionContext;
25594 executionContext &= ~BatchedContext;
25595 executionContext |= LegacyUnbatchedContext;
25596
25597 try {
25598 return fn(a);
25599 } finally {
25600 executionContext = prevExecutionContext;
25601
25602 if (executionContext === NoContext) {
25603 // Flush the immediate callbacks that were scheduled during this batch
25604 flushSyncCallbackQueue();
25605 }
25606 }
25607 }
25608 function flushSync(fn, a) {
25609 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
25610 {

Callers 2

unmountComponentAtNodeFunction · 0.85

Calls 2

fnFunction · 0.85
flushSyncCallbackQueueFunction · 0.85

Tested by

no test coverage detected