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

Function onUncaughtError

code/third-party/public/app.js:13130–13139  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

13128 }
13129
13130 function onUncaughtError(error) {
13131 !(nextFlushedRoot !== null) ? invariant(false, 'Should be working on a root. This error is likely caused by a bug in React. Please file an issue.') : void 0;
13132 // Unschedule this root so we don't work on it again until there's
13133 // another update.
13134 nextFlushedRoot.remainingExpirationTime = NoWork;
13135 if (!hasUnhandledError) {
13136 hasUnhandledError = true;
13137 unhandledError = error;
13138 }
13139 }
13140
13141 // TODO: Batching should be implemented at the renderer level, not inside
13142 // the reconciler.

Callers 2

commitErrorLoggingFunction · 0.70
renderRootFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected