@@ -30,7 +30,6 @@ import {
30
30
enableProfilerCommitHooks ,
31
31
enableProfilerNestedUpdatePhase ,
32
32
enableProfilerNestedUpdateScheduledHook ,
33
- deferRenderPhaseUpdateToNextBatch ,
34
33
enableDebugTracing ,
35
34
enableSchedulingProfiler ,
36
35
disableSchedulerTimeoutInWorkLoop ,
@@ -636,7 +635,6 @@ export function requestUpdateLane(fiber: Fiber): Lane {
636
635
if ( ( mode & ConcurrentMode ) === NoMode ) {
637
636
return ( SyncLane : Lane ) ;
638
637
} else if (
639
- ! deferRenderPhaseUpdateToNextBatch &&
640
638
( executionContext & RenderContext ) !== NoContext &&
641
639
workInProgressRootRenderLanes !== NoLanes
642
640
) {
@@ -804,14 +802,8 @@ export function scheduleUpdateOnFiber(
804
802
805
803
if ( root === workInProgressRoot ) {
806
804
// Received an update to a tree that's in the middle of rendering. Mark
807
- // that there was an interleaved update work on this root. Unless the
808
- // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render
809
- // phase update. In that case, we don't treat render phase updates as if
810
- // they were interleaved, for backwards compat reasons.
811
- if (
812
- deferRenderPhaseUpdateToNextBatch ||
813
- ( executionContext & RenderContext ) === NoContext
814
- ) {
805
+ // that there was an interleaved update work on this root.
806
+ if ( ( executionContext & RenderContext ) === NoContext ) {
815
807
workInProgressRootInterleavedUpdatedLanes = mergeLanes (
816
808
workInProgressRootInterleavedUpdatedLanes ,
817
809
lane ,
@@ -870,13 +862,7 @@ export function scheduleInitialHydrationOnRoot(
870
862
export function isUnsafeClassRenderPhaseUpdate ( fiber : Fiber ) : boolean {
871
863
// Check if this is a render phase update. Only called by class components,
872
864
// which special (deprecated) behavior for UNSAFE_componentWillReceive props.
873
- return (
874
- // TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We
875
- // decided not to enable it.
876
- ( ! deferRenderPhaseUpdateToNextBatch ||
877
- ( fiber . mode & ConcurrentMode ) === NoMode ) &&
878
- ( executionContext & RenderContext ) !== NoContext
879
- ) ;
865
+ return ( executionContext & RenderContext ) !== NoContext ;
880
866
}
881
867
882
868
// Use this function to schedule a task for a root. There's only one task per
0 commit comments