@@ -30,7 +30,6 @@ import {
30
30
enableSchedulingProfiler ,
31
31
enableScopeAPI ,
32
32
skipUnmountedBoundaries ,
33
- disableSchedulerTimeoutInWorkLoop ,
34
33
enableDoubleInvokingEffects ,
35
34
} from 'shared/ReactFeatureFlags' ;
36
35
import ReactSharedInternals from 'shared/ReactSharedInternals' ;
@@ -745,7 +744,7 @@ function ensureRootIsScheduled(root: FiberRoot, currentTime: number) {
745
744
746
745
// This is the entry point for every concurrent task, i.e. anything that
747
746
// goes through Scheduler.
748
- function performConcurrentWorkOnRoot ( root , didTimeout ) {
747
+ function performConcurrentWorkOnRoot ( root ) {
749
748
// Since we know we're in a React event, we can clear the current
750
749
// event time. The next update will compute a new event time.
751
750
currentEventTime = NoTimestamp ;
@@ -785,18 +784,6 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
785
784
return null ;
786
785
}
787
786
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
-
800
787
let exitStatus = renderRootConcurrent(root, lanes);
801
788
802
789
if (
0 commit comments