(error)
| 13128 | } |
| 13129 | |
| 13130 | function onUncaughtError(error) { |
| 13131 | !(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; |
| 13132 | // Unschedule this root so we don't work on it again until there's |
| 13133 | // another update. |
| 13134 | nextFlushedRoot.remainingExpirationTime = NoWork; |
| 13135 | if (!hasUnhandledError) { |
| 13136 | hasUnhandledError = true; |
| 13137 | unhandledError = error; |
| 13138 | } |
| 13139 | } |
| 13140 | |
| 13141 | // TODO: Batching should be implemented at the renderer level, not inside |
| 13142 | // the reconciler. |
no test coverage detected