Skip to content

Commit ec600a9

Browse files
committed
Remove lastPendingTime field
It's no longer used anywhere
1 parent 9f7cca7 commit ec600a9

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/react-reconciler/src/ReactFiberRoot.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ type BaseFiberRootProperties = {|
7575
callbackPriority: ReactPriorityLevel,
7676
// The earliest pending expiration time that exists in the tree
7777
firstPendingTime: ExpirationTime,
78-
// The latest pending expiration time that exists in the tree
79-
lastPendingTime: ExpirationTime,
8078
// The earliest suspended expiration time that exists in the tree
8179
firstSuspendedTime: ExpirationTime,
8280
// The latest suspended expiration time that exists in the tree
@@ -130,7 +128,6 @@ function FiberRootNode(containerInfo, tag, hydrate) {
130128
this.callbackNode = null;
131129
this.callbackPriority = NoPriority;
132130
this.firstPendingTime = NoWork;
133-
this.lastPendingTime = NoWork;
134131
this.firstSuspendedTime = NoWork;
135132
this.lastSuspendedTime = NoWork;
136133
this.nextKnownPendingLevel = NoWork;
@@ -206,10 +203,6 @@ export function markRootUpdatedAtTime(
206203
if (expirationTime > firstPendingTime) {
207204
root.firstPendingTime = expirationTime;
208205
}
209-
const lastPendingTime = root.lastPendingTime;
210-
if (lastPendingTime === NoWork || expirationTime < lastPendingTime) {
211-
root.lastPendingTime = expirationTime;
212-
}
213206

214207
// Update the range of suspended times. Treat everything lower priority or
215208
// equal to this update as unsuspended.
@@ -237,11 +230,6 @@ export function markRootFinishedAtTime(
237230
): void {
238231
// Update the range of pending times
239232
root.firstPendingTime = remainingExpirationTime;
240-
if (remainingExpirationTime < root.lastPendingTime) {
241-
// This usually means we've finished all the work, but it can also happen
242-
// when something gets downprioritized during render, like a hidden tree.
243-
root.lastPendingTime = remainingExpirationTime;
244-
}
245233

246234
// Update the range of suspended times. Treat everything higher priority or
247235
// equal to this update as unsuspended.

0 commit comments

Comments
 (0)