(reason: string)
| 3758 | } |
| 3759 | |
| 3760 | function suspendedViewTransition(reason: string): void { |
| 3761 | if (enableProfilerTimer && enableComponentPerformanceTrack) { |
| 3762 | // We'll split the commit into two phases, because we're suspended in the middle. |
| 3763 | recordCommitEndTime(); |
| 3764 | logCommitPhase( |
| 3765 | pendingSuspendedCommitReason === null |
| 3766 | ? pendingEffectsRenderEndTime |
| 3767 | : commitStartTime, |
| 3768 | commitEndTime, |
| 3769 | commitErrors, |
| 3770 | pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT, |
| 3771 | workInProgressUpdateTask, // TODO: Use a ViewTransition Task and this is not safe to read in this phase. |
| 3772 | ); |
| 3773 | pendingSuspendedViewTransitionReason = reason; |
| 3774 | pendingSuspendedCommitReason = reason; |
| 3775 | } |
| 3776 | } |
| 3777 | |
| 3778 | function finishedViewTransition(lanes: Lanes): void { |
| 3779 | if (enableProfilerTimer && enableComponentPerformanceTrack) { |
nothing calls this directly
no test coverage detected