File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -675,9 +675,10 @@ const IMMEDIATE_COMMIT = 0;
675675const SUSPENDED_COMMIT = 1 ;
676676const THROTTLED_COMMIT = 2 ;
677677
678- type DelayedCommitReason = 0 | 1 | 2 ;
678+ type DelayedCommitReason = 0 | 1 | 2 | 3 ;
679679const ABORTED_VIEW_TRANSITION_COMMIT = 1 ;
680680const DELAYED_PASSIVE_COMMIT = 2 ;
681+ const ANIMATION_STARTED_COMMIT = 3 ;
681682
682683const NO_PENDING_EFFECTS = 0 ;
683684const PENDING_MUTATION_PHASE = 1 ;
@@ -3786,6 +3787,9 @@ function flushSpawnedWork(): void {
37863787 pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT ,
37873788 workInProgressUpdateTask , // TODO: Use a ViewTransition Task.
37883789 ) ;
3790+ if ( pendingDelayedCommitReason === IMMEDIATE_COMMIT ) {
3791+ pendingDelayedCommitReason = ANIMATION_STARTED_COMMIT ;
3792+ }
37893793 }
37903794 }
37913795
You can’t perform that action at this time.
0 commit comments