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

Function flushControlled

code/styling/public/app.js:13987–13998  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13985 }
13986
13987 function flushControlled(fn) {
13988 var previousIsBatchingUpdates = isBatchingUpdates;
13989 isBatchingUpdates = true;
13990 try {
13991 syncUpdates(fn);
13992 } finally {
13993 isBatchingUpdates = previousIsBatchingUpdates;
13994 if (!isBatchingUpdates && !isRendering) {
13995 performWork(Sync, false, null);
13996 }
13997 }
13998 }
13999
14000 return {
14001 recalculateCurrentTime: recalculateCurrentTime,

Callers

nothing calls this directly

Calls 2

syncUpdatesFunction · 0.70
performWorkFunction · 0.70

Tested by

no test coverage detected