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

Function finishRendering

code/communication/public/app.js:13820–13845  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13818 }
13819
13820 function finishRendering() {
13821 nestedUpdateCount = 0;
13822
13823 if (completedBatches !== null) {
13824 var batches = completedBatches;
13825 completedBatches = null;
13826 for (var i = 0; i < batches.length; i++) {
13827 var batch = batches[i];
13828 try {
13829 batch._onComplete();
13830 } catch (error) {
13831 if (!hasUnhandledError) {
13832 hasUnhandledError = true;
13833 unhandledError = error;
13834 }
13835 }
13836 }
13837 }
13838
13839 if (hasUnhandledError) {
13840 var error = unhandledError;
13841 unhandledError = null;
13842 hasUnhandledError = false;
13843 throw error;
13844 }
13845 }
13846
13847 function performWorkOnRoot(root, expirationTime, isAsync) {
13848 !!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