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