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

Function onUncaughtError

code/redux/public/app.js:14148–14157  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

14146 }
14147
14148 function onUncaughtError(error) {
14149 !(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;
14150 // Unschedule this root so we don't work on it again until there's
14151 // another update.
14152 nextFlushedRoot.remainingExpirationTime = NoWork;
14153 if (!hasUnhandledError) {
14154 hasUnhandledError = true;
14155 unhandledError = error;
14156 }
14157 }
14158
14159 // TODO: Batching should be implemented at the renderer level, not inside
14160 // the reconciler.

Callers 2

commitErrorLoggingFunction · 0.70
renderRootFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected