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

Function onUncaughtError

code/styling/public/app.js:13897–13906  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

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

Callers 2

commitErrorLoggingFunction · 0.70
renderRootFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected