@@ -2063,8 +2063,6 @@ function updateSuspensePrimaryChildren(
20632063 primaryChildFragment . sibling = null ;
20642064 if ( currentFallbackChildFragment !== null ) {
20652065 // Delete the fallback child fragment
2066- currentFallbackChildFragment . nextEffect = null ;
2067- workInProgress . firstEffect = workInProgress . lastEffect = currentFallbackChildFragment ;
20682066 const deletions = workInProgress . deletions ;
20692067 if ( deletions === null ) {
20702068 workInProgress . deletions = [ currentFallbackChildFragment ] ;
@@ -2129,21 +2127,8 @@ function updateSuspenseFallbackChildren(
21292127
21302128 // The fallback fiber was added as a deletion effect during the first pass.
21312129 // However, since we're going to remain on the fallback, we no longer want
2132- // to delete it. So we need to remove it from the list. Deletions are stored
2133- // on the same list as effects. We want to keep the effects from the primary
2134- // tree. So we copy the primary child fragment's effect list, which does not
2135- // include the fallback deletion effect.
2136- const progressedLastEffect = primaryChildFragment . lastEffect ;
2137- if ( progressedLastEffect !== null ) {
2138- workInProgress . firstEffect = primaryChildFragment . firstEffect ;
2139- workInProgress . lastEffect = progressedLastEffect ;
2140- progressedLastEffect . nextEffect = null ;
2141- workInProgress . deletions = null ;
2142- } else {
2143- // TODO: Reset this somewhere else? Lol legacy mode is so weird.
2144- workInProgress . firstEffect = workInProgress . lastEffect = null ;
2145- workInProgress . deletions = null ;
2146- }
2130+ // to delete it.
2131+ workInProgress . deletions = null ;
21472132 } else {
21482133 primaryChildFragment = createWorkInProgressOffscreenFiber (
21492134 currentPrimaryChildFragment ,
@@ -2633,7 +2618,6 @@ function initSuspenseListRenderState(
26332618 tail : null | Fiber ,
26342619 lastContentRow : null | Fiber ,
26352620 tailMode : SuspenseListTailMode ,
2636- lastEffectBeforeRendering : null | Fiber ,
26372621) : void {
26382622 const renderState : null | SuspenseListRenderState =
26392623 workInProgress . memoizedState ;
@@ -2645,7 +2629,6 @@ function initSuspenseListRenderState(
26452629 last : lastContentRow ,
26462630 tail : tail ,
26472631 tailMode : tailMode ,
2648- lastEffect : lastEffectBeforeRendering ,
26492632 } : SuspenseListRenderState ) ;
26502633 } else {
26512634 // We can reuse the existing object from previous renders.
@@ -2655,7 +2638,6 @@ function initSuspenseListRenderState(
26552638 renderState . last = lastContentRow ;
26562639 renderState . tail = tail ;
26572640 renderState . tailMode = tailMode ;
2658- renderState . lastEffect = lastEffectBeforeRendering ;
26592641 }
26602642}
26612643
@@ -2737,7 +2719,6 @@ function updateSuspenseListComponent(
27372719 tail ,
27382720 lastContentRow ,
27392721 tailMode ,
2740- workInProgress . lastEffect ,
27412722 ) ;
27422723 break ;
27432724 }
@@ -2769,7 +2750,6 @@ function updateSuspenseListComponent(
27692750 tail ,
27702751 null , // last
27712752 tailMode ,
2772- workInProgress . lastEffect ,
27732753 ) ;
27742754 break ;
27752755 }
@@ -2780,7 +2760,6 @@ function updateSuspenseListComponent(
27802760 null , // tail
27812761 null , // last
27822762 undefined ,
2783- workInProgress . lastEffect ,
27842763 ) ;
27852764 break ;
27862765 }
@@ -3040,13 +3019,6 @@ function remountFiber(
30403019
30413020 // Delete the old fiber and place the new one.
30423021 // Since the old fiber is disconnected, we have to schedule it manually.
3043- const last = returnFiber . lastEffect ;
3044- if ( last !== null ) {
3045- last . nextEffect = current ;
3046- returnFiber . lastEffect = current ;
3047- } else {
3048- returnFiber . firstEffect = returnFiber . lastEffect = current ;
3049- }
30503022 const deletions = returnFiber . deletions ;
30513023 if ( deletions === null ) {
30523024 returnFiber . deletions = [ current ] ;
@@ -3055,7 +3027,6 @@ function remountFiber(
30553027 } else {
30563028 deletions . push ( current ) ;
30573029 }
3058- current . nextEffect = null ;
30593030
30603031 newWorkInProgress . effectTag |= Placement ;
30613032
@@ -3256,7 +3227,6 @@ function beginWork(
32563227 // update in the past but didn't complete it.
32573228 renderState . rendering = null ;
32583229 renderState . tail = null ;
3259- renderState . lastEffect = null ;
32603230 }
32613231 pushSuspenseContext ( workInProgress , suspenseStackCursor . current ) ;
32623232
0 commit comments