(error)
| 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. |
no test coverage detected