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

Function flushControlled

code/dependency-injection/public/app.js:14080–14091  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

14078 }
14079
14080 function flushControlled(fn) {
14081 var previousIsBatchingUpdates = isBatchingUpdates;
14082 isBatchingUpdates = true;
14083 try {
14084 syncUpdates(fn);
14085 } finally {
14086 isBatchingUpdates = previousIsBatchingUpdates;
14087 if (!isBatchingUpdates && !isRendering) {
14088 performWork(Sync, false, null);
14089 }
14090 }
14091 }
14092
14093 return {
14094 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected