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

Function onUncaughtError

code/higher-order-components/public/app.js:13891–13900  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

13889 }
13890
13891 function onUncaughtError(error) {
13892 !(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;
13893 // Unschedule this root so we don't work on it again until there's
13894 // another update.
13895 nextFlushedRoot.remainingExpirationTime = NoWork;
13896 if (!hasUnhandledError) {
13897 hasUnhandledError = true;
13898 unhandledError = error;
13899 }
13900 }
13901
13902 // TODO: Batching should be implemented at the renderer level, not inside
13903 // the reconciler.

Callers 2

commitErrorLoggingFunction · 0.70
renderRootFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected