@@ -30,7 +30,6 @@ import {
3030 enableSchedulingProfiler ,
3131 enableScopeAPI ,
3232 skipUnmountedBoundaries ,
33- disableSchedulerTimeoutInWorkLoop ,
3433 enableDoubleInvokingEffects ,
3534} from 'shared/ReactFeatureFlags' ;
3635import ReactSharedInternals from 'shared/ReactSharedInternals' ;
@@ -745,7 +744,7 @@ function ensureRootIsScheduled(root: FiberRoot, currentTime: number) {
745744
746745// This is the entry point for every concurrent task, i.e. anything that
747746// goes through Scheduler.
748- function performConcurrentWorkOnRoot ( root , didTimeout ) {
747+ function performConcurrentWorkOnRoot ( root ) {
749748 // Since we know we're in a React event, we can clear the current
750749 // event time. The next update will compute a new event time.
751750 currentEventTime = NoTimestamp ;
@@ -785,18 +784,6 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
785784 return null ;
786785 }
787786
788- // TODO: We only check `didTimeout` defensively, to account for a Scheduler
789- // bug we're still investigating. Once the bug in Scheduler is fixed,
790- // we can remove this, since we track expiration ourselves.
791- if (!disableSchedulerTimeoutInWorkLoop && didTimeout ) {
792- // Something expired. Flush synchronously until there's no expired
793- // work left.
794- markRootExpired ( root , lanes ) ;
795- // This will schedule a synchronous callback.
796- ensureRootIsScheduled ( root , now ( ) ) ;
797- return null ;
798- }
799-
800787 let exitStatus = renderRootConcurrent(root, lanes);
801788
802789 if (
0 commit comments