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

Function onUncaughtError

code/one-direction-data-flow/public/app.js:13770–13779  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

13768 }
13769
13770 function onUncaughtError(error) {
13771 !(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;
13772 // Unschedule this root so we don't work on it again until there's
13773 // another update.
13774 nextFlushedRoot.remainingExpirationTime = NoWork;
13775 if (!hasUnhandledError) {
13776 hasUnhandledError = true;
13777 unhandledError = error;
13778 }
13779 }
13780
13781 // TODO: Batching should be implemented at the renderer level, not inside
13782 // the reconciler.

Callers 2

commitErrorLoggingFunction · 0.70
renderRootFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected