From ddd736d2589c972e1ac75402f2e2e833e97ad61a Mon Sep 17 00:00:00 2001 From: bubucuo Date: Wed, 21 Feb 2024 19:17:21 +0800 Subject: [PATCH] refactor: remove dead types of fiber (#28405) The properties `firstEffect` and `lastEffect` of the Fiber are currently not being used and are considered to be dead code, and can be removed. --- packages/react-reconciler/src/ReactInternalTypes.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/react-reconciler/src/ReactInternalTypes.js b/packages/react-reconciler/src/ReactInternalTypes.js index d643b1f9c2612..0227970a77b33 100644 --- a/packages/react-reconciler/src/ReactInternalTypes.js +++ b/packages/react-reconciler/src/ReactInternalTypes.js @@ -157,12 +157,6 @@ export type Fiber = { subtreeFlags: Flags, deletions: Array | null, - // The first and last fiber with side-effect within this subtree. This allows - // us to reuse a slice of the linked list when we reuse the work done within - // this fiber. - firstEffect: Fiber | null, - lastEffect: Fiber | null, - lanes: Lanes, childLanes: Lanes,