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

Function finishRendering

code/styling/public/app.js:13785–13810  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13783 }
13784
13785 function finishRendering() {
13786 nestedUpdateCount = 0;
13787
13788 if (completedBatches !== null) {
13789 var batches = completedBatches;
13790 completedBatches = null;
13791 for (var i = 0; i < batches.length; i++) {
13792 var batch = batches[i];
13793 try {
13794 batch._onComplete();
13795 } catch (error) {
13796 if (!hasUnhandledError) {
13797 hasUnhandledError = true;
13798 unhandledError = error;
13799 }
13800 }
13801 }
13802 }
13803
13804 if (hasUnhandledError) {
13805 var error = unhandledError;
13806 unhandledError = null;
13807 hasUnhandledError = false;
13808 throw error;
13809 }
13810 }
13811
13812 function performWorkOnRoot(root, expirationTime, isAsync) {
13813 !!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