Skip to content

Commit

Permalink
refactor: remove dead types of fiber (#28405)
Browse files Browse the repository at this point in the history
The properties `firstEffect` and `lastEffect` of the Fiber are currently
not being used and are considered to be dead code, and can be removed.
  • Loading branch information
bubucuo authored Feb 21, 2024
1 parent 353ecd0 commit ddd736d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/react-reconciler/src/ReactInternalTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ export type Fiber = {
subtreeFlags: Flags,
deletions: Array<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.
firstEffect: Fiber | null,
lastEffect: Fiber | null,

lanes: Lanes,
childLanes: Lanes,

Expand Down

0 comments on commit ddd736d

Please sign in to comment.