mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
remove some redundant lines (#13077)
* remove another couple of redundant lines * a few more
This commit is contained in:
committed by
Dan Abramov
parent
0fcf92d06d
commit
ae8c6dd534
@@ -999,8 +999,6 @@ function renderRoot(root: FiberRoot, isYieldy: boolean): void {
|
||||
resetStack();
|
||||
nextRoot = root;
|
||||
nextRenderExpirationTime = expirationTime;
|
||||
nextLatestTimeoutMs = -1;
|
||||
nextRenderDidError = false;
|
||||
nextUnitOfWork = createWorkInProgress(
|
||||
nextRoot.current,
|
||||
null,
|
||||
@@ -1840,7 +1838,6 @@ function performWorkOnRoot(
|
||||
// This root is already complete. We can commit it.
|
||||
completeRoot(root, finishedWork, expirationTime);
|
||||
} else {
|
||||
root.finishedWork = null;
|
||||
renderRoot(root, false);
|
||||
finishedWork = root.finishedWork;
|
||||
if (finishedWork !== null) {
|
||||
@@ -1855,7 +1852,6 @@ function performWorkOnRoot(
|
||||
// This root is already complete. We can commit it.
|
||||
completeRoot(root, finishedWork, expirationTime);
|
||||
} else {
|
||||
root.finishedWork = null;
|
||||
renderRoot(root, true);
|
||||
finishedWork = root.finishedWork;
|
||||
if (finishedWork !== null) {
|
||||
|
||||
Reference in New Issue
Block a user