Skip to content

Commit

Permalink
emmm
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Oct 18, 2023
1 parent b0de603 commit b851c55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function reconcile(
// if (oldVnode === newVnode) {
// return ref
// } else

if (isEmpty(newVnode) && isEmpty(oldVnode)) {
return ref
} else if (isLeaf(newVnode) && isLeaf(oldVnode)) {
Expand All @@ -210,7 +210,6 @@ function reconcile(
isElement(oldVnode) &&
newVnode.type === oldVnode.type
) {

isSvg = isSvg || newVnode.type === 'svg'
reconcileProps(ref.node, newVnode.props, oldVnode.props, isSvg)
let oldCh = oldVnode.props.children
Expand Down

0 comments on commit b851c55

Please sign in to comment.