@@ -145,6 +145,8 @@ function FiberNode(
145
145
146
146
this . firstEffect = null ;
147
147
this . lastEffect = null ;
148
+ this . subtreeFlags = NoFlags ;
149
+ this . deletions = null ;
148
150
149
151
this . lanes = NoLanes ;
150
152
this . childLanes = NoLanes ;
@@ -284,6 +286,8 @@ export function createWorkInProgress(current: Fiber, pendingProps: any): Fiber {
284
286
workInProgress . nextEffect = null ;
285
287
workInProgress . firstEffect = null ;
286
288
workInProgress . lastEffect = null ;
289
+ workInProgress . subtreeFlags = NoFlags ;
290
+ workInProgress . deletions = null ;
287
291
288
292
if ( enableProfilerTimer ) {
289
293
// We intentionally reset, rather than copy, actualDuration & actualStartTime.
@@ -372,6 +376,7 @@ export function resetWorkInProgress(workInProgress: Fiber, renderLanes: Lanes) {
372
376
workInProgress . lanes = renderLanes ;
373
377
374
378
workInProgress . child = null ;
379
+ workInProgress . subtreeFlags = NoFlags ;
375
380
workInProgress . memoizedProps = null ;
376
381
workInProgress . memoizedState = null ;
377
382
workInProgress . updateQueue = null ;
@@ -392,6 +397,8 @@ export function resetWorkInProgress(workInProgress: Fiber, renderLanes: Lanes) {
392
397
workInProgress . lanes = current . lanes ;
393
398
394
399
workInProgress . child = current . child ;
400
+ workInProgress . subtreeFlags = current . subtreeFlags ;
401
+ workInProgress . deletions = null ;
395
402
workInProgress . memoizedProps = current . memoizedProps ;
396
403
workInProgress . memoizedState = current . memoizedState ;
397
404
workInProgress . updateQueue = current . updateQueue ;
@@ -814,6 +821,8 @@ export function assignFiberPropertiesInDEV(
814
821
target . nextEffect = source . nextEffect ;
815
822
target . firstEffect = source . firstEffect ;
816
823
target . lastEffect = source . lastEffect ;
824
+ target . subtreeFlags = source . subtreeFlags ;
825
+ target . deletions = source . deletions ;
817
826
target . lanes = source . lanes ;
818
827
target . childLanes = source . childLanes ;
819
828
target . alternate = source . alternate ;
0 commit comments