(error)
| 13256 | } |
| 13257 | |
| 13258 | function onUncaughtError(error) { |
| 13259 | !(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; |
| 13260 | // Unschedule this root so we don't work on it again until there's |
| 13261 | // another update. |
| 13262 | nextFlushedRoot.remainingExpirationTime = NoWork; |
| 13263 | if (!hasUnhandledError) { |
| 13264 | hasUnhandledError = true; |
| 13265 | unhandledError = error; |
| 13266 | } |
| 13267 | } |
| 13268 | |
| 13269 | // TODO: Batching should be implemented at the renderer level, not inside |
| 13270 | // the reconciler. |
no test coverage detected