(error)
| 13930 | } |
| 13931 | |
| 13932 | function onUncaughtError(error) { |
| 13933 | !(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; |
| 13934 | // Unschedule this root so we don't work on it again until there's |
| 13935 | // another update. |
| 13936 | nextFlushedRoot.remainingExpirationTime = NoWork; |
| 13937 | if (!hasUnhandledError) { |
| 13938 | hasUnhandledError = true; |
| 13939 | unhandledError = error; |
| 13940 | } |
| 13941 | } |
| 13942 | |
| 13943 | // TODO: Batching should be implemented at the renderer level, not inside |
| 13944 | // the reconciler. |
no test coverage detected