()
| 13917 | // When working on async work, the reconciler asks the renderer if it should |
| 13918 | // yield execution. For DOM, we implement this with requestIdleCallback. |
| 13919 | function shouldYield() { |
| 13920 | if (deadline === null) { |
| 13921 | return false; |
| 13922 | } |
| 13923 | if (deadline.timeRemaining() > timeHeuristicForUnitOfWork) { |
| 13924 | // Disregard deadline.didTimeout. Only expired work should be flushed |
| 13925 | // during a timeout. This path is only hit for non-expired work. |
| 13926 | return false; |
| 13927 | } |
| 13928 | deadlineDidExpire = true; |
| 13929 | return true; |
| 13930 | } |
| 13931 | |
| 13932 | function onUncaughtError(error) { |
| 13933 | !(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