MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / onUncaughtError

Function onUncaughtError

code/composition/public/app.js:14035–14044  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

14033 }
14034
14035 function onUncaughtError(error) {
14036 !(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;
14037 // Unschedule this root so we don't work on it again until there's
14038 // another update.
14039 nextFlushedRoot.remainingExpirationTime = NoWork;
14040 if (!hasUnhandledError) {
14041 hasUnhandledError = true;
14042 unhandledError = error;
14043 }
14044 }
14045
14046 // TODO: Batching should be implemented at the renderer level, not inside
14047 // the reconciler.

Callers 2

commitErrorLoggingFunction · 0.70
renderRootFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected