File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ import {
4848 hasPendingCommitEffects ,
4949 isWorkLoopSuspendedOnData ,
5050 performWorkOnRoot ,
51- isPreparingViewTransition ,
5251} from './ReactFiberWorkLoop' ;
5352import { LegacyRoot } from './ReactRootTags' ;
5453import {
@@ -314,7 +313,7 @@ function processRootScheduleInMicrotask() {
314313 // If we're in the middle of a View Transition async sequence, we don't want to
315314 // interrupt that sequence. Instead, we'll flush any remaining work when it
316315 // completes.
317- if ( ! isPreparingViewTransition ( ) ) {
316+ if ( ! hasPendingCommitEffects ( ) ) {
318317 flushSyncWorkAcrossRoots_impl ( syncTransitionLanes , false ) ;
319318 }
320319}
Original file line number Diff line number Diff line change @@ -677,10 +677,6 @@ let pendingTransitionTypes: null | TransitionTypes = null;
677677let pendingDidIncludeRenderPhaseUpdate : boolean = false ;
678678let pendingSuspendedCommitReason : SuspendedCommitReason = IMMEDIATE_COMMIT ; // Profiling-only
679679
680- export function isPreparingViewTransition ( ) : boolean {
681- return enableViewTransition && pendingViewTransition !== null ;
682- }
683-
684680// Use these to prevent an infinite loop of nested updates
685681const NESTED_UPDATE_LIMIT = 50 ;
686682let nestedUpdateCount : number = 0 ;
You can’t perform that action at this time.
0 commit comments