@@ -28,7 +28,6 @@ import {
2828 warnAboutUnmockedScheduler ,
2929 flushSuspenseFallbacksInTests ,
3030 disableSchedulerTimeoutBasedOnReactExpirationTime ,
31- enableTrainModelFix ,
3231} from 'shared/ReactFeatureFlags' ;
3332import ReactSharedInternals from 'shared/ReactSharedInternals' ;
3433import invariant from 'shared/invariant' ;
@@ -548,11 +547,7 @@ function getNextRootExpirationTimeToWorkOn(root: FiberRoot): ExpirationTime {
548547 lastPingedTime > nextKnownPendingLevel
549548 ? lastPingedTime
550549 : nextKnownPendingLevel ;
551- if (
552- enableTrainModelFix &&
553- nextLevel <= Idle &&
554- firstPendingTime !== nextLevel
555- ) {
550+ if ( nextLevel <= Idle && firstPendingTime !== nextLevel ) {
556551 // Don't work on Idle/Never priority unless everything else is committed.
557552 return NoWork ;
558553 }
@@ -2478,12 +2473,6 @@ export function pingSuspendedRoot(
24782473 // Mark the time at which this ping was scheduled.
24792474 root . lastPingedTime = suspendedTime ;
24802475
2481- if ( ! enableTrainModelFix && root . finishedExpirationTime === suspendedTime ) {
2482- // If there's a pending fallback waiting to commit, throw it away.
2483- root . finishedExpirationTime = NoWork ;
2484- root . finishedWork = null ;
2485- }
2486-
24872476 ensureRootIsScheduled ( root ) ;
24882477 schedulePendingInteractions ( root , suspendedTime ) ;
24892478}
0 commit comments