(error)
| 13988 | } |
| 13989 | |
| 13990 | function onUncaughtError(error) { |
| 13991 | !(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; |
| 13992 | // Unschedule this root so we don't work on it again until there's |
| 13993 | // another update. |
| 13994 | nextFlushedRoot.remainingExpirationTime = NoWork; |
| 13995 | if (!hasUnhandledError) { |
| 13996 | hasUnhandledError = true; |
| 13997 | unhandledError = error; |
| 13998 | } |
| 13999 | } |
| 14000 | |
| 14001 | // TODO: Batching should be implemented at the renderer level, not inside |
| 14002 | // the reconciler. |
no test coverage detected