MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / flushRoot

Function flushRoot

code/composition/public/app.js:13914–13921  ·  view source on GitHub ↗
(root, expirationTime)

Source from the content-addressed store, hash-verified

13912 }
13913
13914 function flushRoot(root, expirationTime) {
13915 !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0;
13916 // Perform work on root as if the given expiration time is the current time.
13917 // This has the effect of synchronously flushing all work up to and
13918 // including the given time.
13919 performWorkOnRoot(root, expirationTime, false);
13920 finishRendering();
13921 }
13922
13923 function finishRendering() {
13924 nestedUpdateCount = 0;

Callers

nothing calls this directly

Calls 3

invariantFunction · 0.70
performWorkOnRootFunction · 0.70
finishRenderingFunction · 0.70

Tested by

no test coverage detected