Skip to content

Commit ddd736d

Browse files
authored
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.
1 parent 353ecd0 commit ddd736d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/react-reconciler/src/ReactInternalTypes.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ export type Fiber = {
157157
subtreeFlags: Flags,
158158
deletions: Array<Fiber> | null,
159159

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-
166160
lanes: Lanes,
167161
childLanes: Lanes,
168162

0 commit comments

Comments
 (0)