@samitouri / QOS-React-2 / commits / ddd736d258

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.

bubucuo committed Feb 21, 2024 at 19:17 UTC ddd736d2589c972e1ac75402f2e2e833e97ad61a
1 file changed -6
packages/react-reconciler/src/ReactInternalTypes.js
-6
@@ -157,12 +157,6 @@ export type Fiber = {
157 subtreeFlags: Flags,
158 deletions: Array<Fiber> | null,
159
160 - // The first and last fiber with side-effect within this subtree. This allows
161 - // us to reuse a slice of the linked list when we reuse the work done within
162 - // this fiber.
163 - firstEffect: Fiber | null,
164 - lastEffect: Fiber | null,
165 -
160 lanes: Lanes,
161 childLanes: Lanes,
162