@@ -30,8 +30,6 @@ import {
3030 enableSchedulingProfiler ,
3131 enableScopeAPI ,
3232 skipUnmountedBoundaries ,
33- disableSchedulerTimeoutInWorkLoop ,
34- enableDoubleInvokingEffects ,
3533} from 'shared/ReactFeatureFlags' ;
3634import ReactSharedInternals from 'shared/ReactSharedInternals' ;
3735import invariant from 'shared/invariant' ;
@@ -745,7 +743,7 @@ function ensureRootIsScheduled(root: FiberRoot, currentTime: number) {
745743
746744// This is the entry point for every concurrent task, i.e. anything that
747745// goes through Scheduler.
748- function performConcurrentWorkOnRoot ( root , didTimeout ) {
746+ function performConcurrentWorkOnRoot ( root ) {
749747 // Since we know we're in a React event, we can clear the current
750748 // event time. The next update will compute a new event time.
751749 currentEventTime = NoTimestamp ;
@@ -785,18 +783,6 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
785783 return null ;
786784 }
787785
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-
800786 let exitStatus = renderRootConcurrent(root, lanes);
801787
802788 if (
0 commit comments