MCPcopy Index your code
hub / github.com/react/react / suspendedViewTransition

Function suspendedViewTransition

packages/react-reconciler/src/ReactFiberWorkLoop.js:3760–3776  ·  view source on GitHub ↗
(reason: string)

Source from the content-addressed store, hash-verified

3758}
3759
3760function 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
3778function finishedViewTransition(lanes: Lanes): void {
3779 if (enableProfilerTimer && enableComponentPerformanceTrack) {

Callers

nothing calls this directly

Calls 2

recordCommitEndTimeFunction · 0.90
logCommitPhaseFunction · 0.90

Tested by

no test coverage detected