(error)
| 13219 | } |
| 13220 | |
| 13221 | function onUncaughtError(error) { |
| 13222 | !(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; |
| 13223 | // Unschedule this root so we don't work on it again until there's |
| 13224 | // another update. |
| 13225 | nextFlushedRoot.remainingExpirationTime = NoWork; |
| 13226 | if (!hasUnhandledError) { |
| 13227 | hasUnhandledError = true; |
| 13228 | unhandledError = error; |
| 13229 | } |
| 13230 | } |
| 13231 | |
| 13232 | // TODO: Batching should be implemented at the renderer level, not inside |
| 13233 | // the reconciler. |
no test coverage detected