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

Function onUncaughtError

code/dependency-injection/public/app.js:13990–13999  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

13988 }
13989
13990 function onUncaughtError(error) {
13991 !(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;
13992 // Unschedule this root so we don't work on it again until there's
13993 // another update.
13994 nextFlushedRoot.remainingExpirationTime = NoWork;
13995 if (!hasUnhandledError) {
13996 hasUnhandledError = true;
13997 unhandledError = error;
13998 }
13999 }
14000
14001 // TODO: Batching should be implemented at the renderer level, not inside
14002 // the reconciler.

Callers 2

commitErrorLoggingFunction · 0.70
renderRootFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected