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 4fe8732
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/diff/children.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ export function diffChildren(
firstChildDom = newDom;
}

let isMounting =
isHydrating || oldVNode === EMPTY_OBJ || oldVNode._original === null;
let isMounting = oldVNode === EMPTY_OBJ || oldVNode._original === null;
let hasMatchingIndex = !isMounting && matchingIndex === skewedIndex;
if (isMounting) {
if (matchingIndex == -1) {
Expand Down

0 comments on commit 4fe8732

Please sign in to comment.