MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / flushControlled

Function flushControlled

code/new-context-api/public/app.js:13348–13359  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13346 }
13347
13348 function flushControlled(fn) {
13349 var previousIsBatchingUpdates = isBatchingUpdates;
13350 isBatchingUpdates = true;
13351 try {
13352 syncUpdates(fn);
13353 } finally {
13354 isBatchingUpdates = previousIsBatchingUpdates;
13355 if (!isBatchingUpdates && !isRendering) {
13356 performWork(Sync, false, null);
13357 }
13358 }
13359 }
13360
13361 return {
13362 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected