(root, expirationTime)
| 22069 | } |
| 22070 | |
| 22071 | function prepareFreshStack(root, expirationTime) { |
| 22072 | root.finishedWork = null; |
| 22073 | root.finishedExpirationTime = NoWork; |
| 22074 | var timeoutHandle = root.timeoutHandle; |
| 22075 | |
| 22076 | if (timeoutHandle !== noTimeout) { |
| 22077 | // The root previous suspended and scheduled a timeout to commit a fallback |
| 22078 | // state. Now that we have additional work, cancel the timeout. |
| 22079 | root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above |
| 22080 | |
| 22081 | cancelTimeout(timeoutHandle); |
| 22082 | } |
| 22083 | |
| 22084 | if (workInProgress !== null) { |
| 22085 | var interruptedWork = workInProgress.return; |
| 22086 | |
| 22087 | while (interruptedWork !== null) { |
| 22088 | unwindInterruptedWork(interruptedWork); |
| 22089 | interruptedWork = interruptedWork.return; |
| 22090 | } |
| 22091 | } |
| 22092 | |
| 22093 | workInProgressRoot = root; |
| 22094 | workInProgress = createWorkInProgress(root.current, null); |
| 22095 | renderExpirationTime$1 = expirationTime; |
| 22096 | workInProgressRootExitStatus = RootIncomplete; |
| 22097 | workInProgressRootFatalError = null; |
| 22098 | workInProgressRootLatestProcessedExpirationTime = Sync; |
| 22099 | workInProgressRootLatestSuspenseTimeout = Sync; |
| 22100 | workInProgressRootCanSuspendUsingConfig = null; |
| 22101 | workInProgressRootNextUnprocessedUpdateTime = NoWork; |
| 22102 | workInProgressRootHasPendingPing = false; |
| 22103 | |
| 22104 | { |
| 22105 | spawnedWorkDuringRender = null; |
| 22106 | } |
| 22107 | |
| 22108 | { |
| 22109 | ReactStrictModeWarnings.discardPendingWarnings(); |
| 22110 | } |
| 22111 | } |
| 22112 | |
| 22113 | function handleError(root, thrownValue) { |
| 22114 | do { |
no test coverage detected