@samitouri / QOS-React / commits / 605da8b420

Extract common logic (#13535)

Heaven committed Sep 4, 2018 at 03:57 UTC 605da8b420207d93c034461f44775d9296830c0c
1 file changed +1 -2
packages/react-reconciler/src/ReactFiberScheduler.js
+1 -2
@@ -1601,14 +1601,13 @@ function retrySuspendedRoot(
1601 if (isPriorityLevelSuspended(root, suspendedTime)) {
1602 // Ping at the original level
1603 retryTime = suspendedTime;
1604 - markPingedPriorityLevel(root, retryTime);
1604 } else {
1605 // Placeholder already timed out. Compute a new expiration time
1606 const currentTime = requestCurrentTime();
1607 retryTime = computeExpirationForFiber(currentTime, fiber);
1609 - markPendingPriorityLevel(root, retryTime);
1608 }
1609
1610 + markPingedPriorityLevel(root, retryTime);
1611 scheduleWorkToRoot(fiber, retryTime);
1612 const rootExpirationTime = root.expirationTime;
1613 if (rootExpirationTime !== NoWork) {