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

Function finishRendering

code/third-party/public/app.js:13018–13043  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13016 }
13017
13018 function finishRendering() {
13019 nestedUpdateCount = 0;
13020
13021 if (completedBatches !== null) {
13022 var batches = completedBatches;
13023 completedBatches = null;
13024 for (var i = 0; i < batches.length; i++) {
13025 var batch = batches[i];
13026 try {
13027 batch._onComplete();
13028 } catch (error) {
13029 if (!hasUnhandledError) {
13030 hasUnhandledError = true;
13031 unhandledError = error;
13032 }
13033 }
13034 }
13035 }
13036
13037 if (hasUnhandledError) {
13038 var error = unhandledError;
13039 unhandledError = null;
13040 hasUnhandledError = false;
13041 throw error;
13042 }
13043 }
13044
13045 function performWorkOnRoot(root, expirationTime, isAsync) {
13046 !!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