refactor: remove dead code of fiber (#28389)
The `nextEffect` property of the `fiber` is currently not being used and has become dead code. It can be safely removed.
bubucuo committed
Feb 21, 2024 at 03:31 UTC
49441e342f0c5252eb24bb352cf76ac59aef353c
1 file changed
-3
packages/react-reconciler/src/ReactInternalTypes.js
-3
@@ -157,9 +157,6 @@ export type Fiber = {
157
subtreeFlags: Flags,
158
deletions: Array<Fiber> | null,
159
160
- // Singly linked list fast path to the next fiber with side-effects.
161
- nextEffect: Fiber | null,
162
-
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.