()
| 13755 | // When working on async work, the reconciler asks the renderer if it should |
| 13756 | // yield execution. For DOM, we implement this with requestIdleCallback. |
| 13757 | function shouldYield() { |
| 13758 | if (deadline === null) { |
| 13759 | return false; |
| 13760 | } |
| 13761 | if (deadline.timeRemaining() > timeHeuristicForUnitOfWork) { |
| 13762 | // Disregard deadline.didTimeout. Only expired work should be flushed |
| 13763 | // during a timeout. This path is only hit for non-expired work. |
| 13764 | return false; |
| 13765 | } |
| 13766 | deadlineDidExpire = true; |
| 13767 | return true; |
| 13768 | } |
| 13769 | |
| 13770 | function onUncaughtError(error) { |
| 13771 | !(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; |
no outgoing calls
no test coverage detected