delete a couple of redundant lines in performWorkOnRoot() in ReactFiberScheduler.js (#13003)
Nathan Quarles committed
Jun 9, 2018 at 17:56 UTC
bfb12ebb521853f6604521d4d548f5f5840a16de
1 file changed
-2
packages/react-reconciler/src/ReactFiberScheduler.js
-2
@@ -1768,7 +1768,6 @@ function performWorkOnRoot(
1768
// This root is already complete. We can commit it.
1769
completeRoot(root, finishedWork, expirationTime);
1770
} else {
1771
- root.finishedWork = null;
1771
finishedWork = renderRoot(root, expirationTime, false);
1772
if (finishedWork !== null) {
1773
// We've completed the root. Commit it.
@@ -1782,7 +1781,6 @@ function performWorkOnRoot(
1781
// This root is already complete. We can commit it.
1782
completeRoot(root, finishedWork, expirationTime);
1783
} else {
1785
- root.finishedWork = null;
1784
finishedWork = renderRoot(root, expirationTime, true);
1785
if (finishedWork !== null) {
1786
// We've completed the root. Check the deadline one more time