@@ -29,8 +29,8 @@ import {
29
29
enableScopeAPI ,
30
30
enableBlocksAPI ,
31
31
} from 'shared/ReactFeatureFlags' ;
32
- import { NoEffect , Placement , StaticMask } from './ReactSideEffectTags ' ;
33
- import { NoEffect as NoSubtreeEffect } from './ReactSubtreeTags ' ;
32
+ import { NoFlags , Placement , StaticMask } from './ReactFiberFlags ' ;
33
+ import { NoFlags as NoSubtreeEffect } from './ReactSubtreeFlags ' ;
34
34
import { ConcurrentRoot , BlockingRoot } from './ReactRootTags' ;
35
35
import {
36
36
IndeterminateComponent ,
@@ -144,8 +144,8 @@ function FiberNode(
144
144
this . mode = mode ;
145
145
146
146
// Effects
147
- this . effectTag = NoEffect ;
148
- this . subtreeTag = NoSubtreeEffect ;
147
+ this . flags = NoFlags ;
148
+ this . subtreeFlags = NoSubtreeEffect ;
149
149
this . deletions = null ;
150
150
151
151
this . lanes = NoLanes ;
@@ -284,7 +284,7 @@ export function createWorkInProgress(current: Fiber, pendingProps: any): Fiber {
284
284
workInProgress . type = current . type ;
285
285
286
286
// We already have an alternate.
287
- workInProgress . subtreeTag = NoSubtreeEffect ;
287
+ workInProgress . subtreeFlags = NoSubtreeEffect ;
288
288
workInProgress . deletions = null ;
289
289
290
290
if ( enableProfilerTimer ) {
@@ -299,7 +299,7 @@ export function createWorkInProgress(current: Fiber, pendingProps: any): Fiber {
299
299
300
300
// Reset all effects except static ones.
301
301
// Static effects are not specific to a render.
302
- workInProgress . effectTag = current . effectTag & StaticMask ;
302
+ workInProgress . flags = current . flags & StaticMask ;
303
303
workInProgress . childLanes = current . childLanes ;
304
304
workInProgress . lanes = current . lanes ;
305
305
@@ -363,7 +363,7 @@ export function resetWorkInProgress(workInProgress: Fiber, renderLanes: Lanes) {
363
363
364
364
// Reset the effect tag but keep any Placement tags, since that's something
365
365
// that child fiber is setting, not the reconciliation.
366
- workInProgress . effectTag &= Placement ;
366
+ workInProgress . flags &= Placement ;
367
367
368
368
const current = workInProgress . alternate ;
369
369
if ( current === null ) {
@@ -372,7 +372,7 @@ export function resetWorkInProgress(workInProgress: Fiber, renderLanes: Lanes) {
372
372
workInProgress . lanes = renderLanes ;
373
373
374
374
workInProgress . child = null ;
375
- workInProgress . subtreeTag = NoSubtreeEffect ;
375
+ workInProgress . subtreeFlags = NoSubtreeEffect ;
376
376
workInProgress . memoizedProps = null ;
377
377
workInProgress . memoizedState = null ;
378
378
workInProgress . updateQueue = null ;
@@ -393,7 +393,7 @@ export function resetWorkInProgress(workInProgress: Fiber, renderLanes: Lanes) {
393
393
workInProgress . lanes = current . lanes ;
394
394
395
395
workInProgress . child = current . child ;
396
- workInProgress . subtreeTag = current . subtreeTag ;
396
+ workInProgress . subtreeFlags = current . subtreeFlags ;
397
397
workInProgress . deletions = null ;
398
398
workInProgress . memoizedProps = current . memoizedProps ;
399
399
workInProgress . memoizedState = current . memoizedState ;
@@ -816,8 +816,8 @@ export function assignFiberPropertiesInDEV(
816
816
target . memoizedState = source . memoizedState ;
817
817
target . dependencies = source . dependencies ;
818
818
target . mode = source . mode ;
819
- target . effectTag = source . effectTag ;
820
- target . subtreeTag = source . subtreeTag ;
819
+ target . flags = source . flags ;
820
+ target . subtreeFlags = source . subtreeFlags ;
821
821
target . deletions = source . deletions ;
822
822
target . lanes = source . lanes ;
823
823
target . childLanes = source . childLanes ;
0 commit comments