File tree 3 files changed +2
-19
lines changed
packages/react-reconciler/src
3 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,7 @@ import type {Fiber} from './ReactInternalTypes';
13
13
import type { Lanes } from './ReactFiberLane.new' ;
14
14
15
15
import getComponentName from 'shared/getComponentName' ;
16
- import {
17
- Deletion ,
18
- ChildDeletion ,
19
- Placement ,
20
- StaticMask ,
21
- } from './ReactFiberFlags' ;
16
+ import { Placement , ChildDeletion } from './ReactFiberFlags' ;
22
17
import {
23
18
getIteratorFn ,
24
19
REACT_ELEMENT_TYPE ,
@@ -281,7 +276,6 @@ function ChildReconciler(shouldTrackSideEffects) {
281
276
returnFiber . firstEffect = returnFiber . lastEffect = childToDelete ;
282
277
}
283
278
childToDelete . nextEffect = null ;
284
- childToDelete . flags = ( childToDelete . flags & StaticMask ) | Deletion ;
285
279
286
280
const deletions = returnFiber . deletions ;
287
281
if ( deletions === null ) {
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ import {
67
67
DidCapture ,
68
68
Update ,
69
69
Ref ,
70
- Deletion ,
71
70
ChildDeletion ,
72
71
ForceUpdateForLegacySuspense ,
73
72
StaticMask ,
@@ -2200,8 +2199,6 @@ function updateSuspensePrimaryChildren(
2200
2199
if ( currentFallbackChildFragment !== null ) {
2201
2200
// Delete the fallback child fragment
2202
2201
currentFallbackChildFragment . nextEffect = null ;
2203
- currentFallbackChildFragment . flags =
2204
- ( currentFallbackChildFragment . flags & StaticMask ) | Deletion ;
2205
2202
workInProgress . firstEffect = workInProgress . lastEffect = currentFallbackChildFragment ;
2206
2203
const deletions = workInProgress . deletions ;
2207
2204
if ( deletions === null ) {
@@ -3191,7 +3188,6 @@ function remountFiber(
3191
3188
returnFiber . firstEffect = returnFiber . lastEffect = current ;
3192
3189
}
3193
3190
current . nextEffect = null ;
3194
- current . flags = ( current . flags & StaticMask ) | Deletion ;
3195
3191
3196
3192
const deletions = returnFiber . deletions ;
3197
3193
if ( deletions === null ) {
Original file line number Diff line number Diff line change @@ -24,13 +24,7 @@ import {
24
24
HostRoot ,
25
25
SuspenseComponent ,
26
26
} from './ReactWorkTags' ;
27
- import {
28
- Deletion ,
29
- ChildDeletion ,
30
- Placement ,
31
- Hydrating ,
32
- StaticMask ,
33
- } from './ReactFiberFlags' ;
27
+ import { ChildDeletion , Placement , Hydrating } from './ReactFiberFlags' ;
34
28
import invariant from 'shared/invariant' ;
35
29
36
30
import {
@@ -130,7 +124,6 @@ function deleteHydratableInstance(
130
124
const childToDelete = createFiberFromHostInstanceForDeletion ( ) ;
131
125
childToDelete . stateNode = instance ;
132
126
childToDelete . return = returnFiber ;
133
- childToDelete . flags = ( childToDelete . flags & StaticMask ) | Deletion ;
134
127
135
128
// This might seem like it belongs on progressedFirstDeletion. However,
136
129
// these children are not part of the reconciliation list of children.
You can’t perform that action at this time.
0 commit comments