Skip to content

Commit

Permalink
refactor: remove dead code of fiber (#28389)
Browse files Browse the repository at this point in the history
The `nextEffect` property of the `fiber` is currently not being used and
has become dead code. It can be safely removed.
  • Loading branch information
bubucuo authored Feb 20, 2024
1 parent 8f01226 commit 49441e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/react-reconciler/src/ReactInternalTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ export type Fiber = {
subtreeFlags: Flags,
deletions: Array<Fiber> | null,

// Singly linked list fast path to the next fiber with side-effects.
nextEffect: Fiber | 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.
Expand Down

0 comments on commit 49441e3

Please sign in to comment.