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

Function finishRendering

code/composition/public/app.js:13923–13948  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13921 }
13922
13923 function finishRendering() {
13924 nestedUpdateCount = 0;
13925
13926 if (completedBatches !== null) {
13927 var batches = completedBatches;
13928 completedBatches = null;
13929 for (var i = 0; i < batches.length; i++) {
13930 var batch = batches[i];
13931 try {
13932 batch._onComplete();
13933 } catch (error) {
13934 if (!hasUnhandledError) {
13935 hasUnhandledError = true;
13936 unhandledError = error;
13937 }
13938 }
13939 }
13940 }
13941
13942 if (hasUnhandledError) {
13943 var error = unhandledError;
13944 unhandledError = null;
13945 hasUnhandledError = false;
13946 throw error;
13947 }
13948 }
13949
13950 function performWorkOnRoot(root, expirationTime, isAsync) {
13951 !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0;

Callers 2

performWorkFunction · 0.70
flushRootFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected