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

Function flushControlled

code/redux/public/app.js:14238–14249  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

14236 }
14237
14238 function flushControlled(fn) {
14239 var previousIsBatchingUpdates = isBatchingUpdates;
14240 isBatchingUpdates = true;
14241 try {
14242 syncUpdates(fn);
14243 } finally {
14244 isBatchingUpdates = previousIsBatchingUpdates;
14245 if (!isBatchingUpdates && !isRendering) {
14246 performWork(Sync, false, null);
14247 }
14248 }
14249 }
14250
14251 return {
14252 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected