Skip to content

Commit

Permalink
cleanup old usage of oldDom
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jul 18, 2024
1 parent eb63908 commit 5593486
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/diff/children.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,6 @@ export function diffChildren(
childVNode._flags & INSERT_VNODE ||
oldVNode._children === childVNode._children
) {
if (
oldDom &&
typeof childVNode.type == 'string' &&
// @ts-expect-error olDom should be present on a DOM node
!parentDom.contains(oldDom)
) {
oldDom = getDomSibling(oldVNode);
}
oldDom = insert(childVNode, oldDom, parentDom);
} else if (
typeof childVNode.type == 'function' &&
Expand Down

0 comments on commit 5593486

Please sign in to comment.