Skip to content

Commit

Permalink
add the !isMounting back
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jun 14, 2023
1 parent 36bfdcb commit 32305bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/diff/children.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export function diffChildren(
hasMatchingIndex || (matchingIndex == i && !isMounting);

if (
!isMounting &&
typeof childVNode.type == 'function' &&
(matchingIndex !== skewedIndex ||
oldVNode._children === childVNode._children)
Expand Down

0 comments on commit 32305bc

Please sign in to comment.