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