(error)
| 14033 | } |
| 14034 | |
| 14035 | function onUncaughtError(error) { |
| 14036 | !(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; |
| 14037 | // Unschedule this root so we don't work on it again until there's |
| 14038 | // another update. |
| 14039 | nextFlushedRoot.remainingExpirationTime = NoWork; |
| 14040 | if (!hasUnhandledError) { |
| 14041 | hasUnhandledError = true; |
| 14042 | unhandledError = error; |
| 14043 | } |
| 14044 | } |
| 14045 | |
| 14046 | // TODO: Batching should be implemented at the renderer level, not inside |
| 14047 | // the reconciler. |
no test coverage detected