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

Function flushControlled

code/third-party/public/app.js:13220–13231  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13218 }
13219
13220 function flushControlled(fn) {
13221 var previousIsBatchingUpdates = isBatchingUpdates;
13222 isBatchingUpdates = true;
13223 try {
13224 syncUpdates(fn);
13225 } finally {
13226 isBatchingUpdates = previousIsBatchingUpdates;
13227 if (!isBatchingUpdates && !isRendering) {
13228 performWork(Sync, false, null);
13229 }
13230 }
13231 }
13232
13233 return {
13234 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected