@@ -30,7 +30,6 @@ import {
3030 enableProfilerCommitHooks ,
3131 enableProfilerNestedUpdatePhase ,
3232 enableProfilerNestedUpdateScheduledHook ,
33- deferRenderPhaseUpdateToNextBatch ,
3433 enableDebugTracing ,
3534 enableSchedulingProfiler ,
3635 disableSchedulerTimeoutInWorkLoop ,
@@ -636,7 +635,6 @@ export function requestUpdateLane(fiber: Fiber): Lane {
636635 if ( ( mode & ConcurrentMode ) === NoMode ) {
637636 return ( SyncLane : Lane ) ;
638637 } else if (
639- ! deferRenderPhaseUpdateToNextBatch &&
640638 ( executionContext & RenderContext ) !== NoContext &&
641639 workInProgressRootRenderLanes !== NoLanes
642640 ) {
@@ -804,14 +802,8 @@ export function scheduleUpdateOnFiber(
804802
805803 if ( root === workInProgressRoot ) {
806804 // 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 ) {
815807 workInProgressRootInterleavedUpdatedLanes = mergeLanes (
816808 workInProgressRootInterleavedUpdatedLanes ,
817809 lane ,
@@ -870,13 +862,7 @@ export function scheduleInitialHydrationOnRoot(
870862export function isUnsafeClassRenderPhaseUpdate ( fiber : Fiber ) : boolean {
871863 // Check if this is a render phase update. Only called by class components,
872864 // 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 ;
880866}
881867
882868// Use this function to schedule a task for a root. There's only one task per
0 commit comments