Skip to content

Commit

Permalink
Revert "Extract common logic" (#13547)
Browse files Browse the repository at this point in the history
* Revert "Fix test"

This reverts commit 17a57ad.

* Revert "Extract common logic (#13535)"

This reverts commit 605da8b.
  • Loading branch information
gaearon authored Sep 3, 2018
1 parent 17a57ad commit 0a96f90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-reconciler/src/ReactFiberScheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1601,13 +1601,14 @@ function retrySuspendedRoot(
if (isPriorityLevelSuspended(root, suspendedTime)) {
// Ping at the original level
retryTime = suspendedTime;
markPingedPriorityLevel(root, retryTime);
} else {
// Placeholder already timed out. Compute a new expiration time
const currentTime = requestCurrentTime();
retryTime = computeExpirationForFiber(currentTime, fiber);
markPendingPriorityLevel(root, retryTime);
}

markPingedPriorityLevel(root, retryTime);
scheduleWorkToRoot(fiber, retryTime);
const rootExpirationTime = root.expirationTime;
if (rootExpirationTime !== NoWork) {
Expand Down

1 comment on commit 0a96f90

@Kenny407
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How's this better than the previous approach?

Please sign in to comment.