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

Function flushControlled

code/higher-order-components/public/app.js:13981–13992  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13979 }
13980
13981 function flushControlled(fn) {
13982 var previousIsBatchingUpdates = isBatchingUpdates;
13983 isBatchingUpdates = true;
13984 try {
13985 syncUpdates(fn);
13986 } finally {
13987 isBatchingUpdates = previousIsBatchingUpdates;
13988 if (!isBatchingUpdates && !isRendering) {
13989 performWork(Sync, false, null);
13990 }
13991 }
13992 }
13993
13994 return {
13995 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected