Remove unnecessary condition

This commit is contained in:
Dan Abramov
2019-04-16 19:10:39 +01:00
parent 9182d0b0aa
commit 3a6d656090
+1 -1
View File
@@ -964,7 +964,7 @@ export function attach(
const nextFallbackChildSet = nextFiber.child.sibling;
mountFiberRecursively(nextFallbackChildSet, nextFiber, true);
shouldResetChildren = true;
} else if (!prevDidTimeout && !nextDidTimeOut) {
} else {
// Common case: Primary -> Primary.
// This is the same codepath as for non-Suspense fibers.
if (nextFiber.child !== prevFiber.child) {