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

Function flushControlled

code/event-handlers/public/app.js:13317–13328  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13315 }
13316
13317 function flushControlled(fn) {
13318 var previousIsBatchingUpdates = isBatchingUpdates;
13319 isBatchingUpdates = true;
13320 try {
13321 syncUpdates(fn);
13322 } finally {
13323 isBatchingUpdates = previousIsBatchingUpdates;
13324 if (!isBatchingUpdates && !isRendering) {
13325 performWork(Sync, false, null);
13326 }
13327 }
13328 }
13329
13330 return {
13331 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected