(error)
| 14146 | } |
| 14147 | |
| 14148 | function onUncaughtError(error) { |
| 14149 | !(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; |
| 14150 | // Unschedule this root so we don't work on it again until there's |
| 14151 | // another update. |
| 14152 | nextFlushedRoot.remainingExpirationTime = NoWork; |
| 14153 | if (!hasUnhandledError) { |
| 14154 | hasUnhandledError = true; |
| 14155 | unhandledError = error; |
| 14156 | } |
| 14157 | } |
| 14158 | |
| 14159 | // TODO: Batching should be implemented at the renderer level, not inside |
| 14160 | // the reconciler. |
no test coverage detected