Skip to content

Commit

Permalink
Revert "Skip over paths that don't include any insertions"
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-SC committed Aug 23, 2022
1 parent c24c0a3 commit 6b3de9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions packages/react-reconciler/src/ReactFiberWorkLoop.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -3004,12 +3004,10 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(
parentFiber: Fiber,
isInStrictMode: boolean,
) {
if (parentFiber.subtreeFlags & PlacementDEV) {
let child = parentFiber.child;
while (child !== null) {
doubleInvokeEffectsInDEV(root, child, isInStrictMode);
child = child.sibling;
}
let child = parentFiber.child;
while (child !== null) {
doubleInvokeEffectsInDEV(root, child, isInStrictMode);
child = child.sibling;
}
}

Expand Down
10 changes: 4 additions & 6 deletions packages/react-reconciler/src/ReactFiberWorkLoop.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -3004,12 +3004,10 @@ function recursivelyTraverseAndDoubleInvokeEffectsInDEV(
parentFiber: Fiber,
isInStrictMode: boolean,
) {
if (parentFiber.subtreeFlags & PlacementDEV) {
let child = parentFiber.child;
while (child !== null) {
doubleInvokeEffectsInDEV(root, child, isInStrictMode);
child = child.sibling;
}
let child = parentFiber.child;
while (child !== null) {
doubleInvokeEffectsInDEV(root, child, isInStrictMode);
child = child.sibling;
}
}

Expand Down

0 comments on commit 6b3de9f

Please sign in to comment.