From b851c550628086470c6647f779fd7811e959f37e Mon Sep 17 00:00:00 2001 From: unknown <1533540012@qq.com> Date: Wed, 18 Oct 2023 18:56:00 +0800 Subject: [PATCH] emmm --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 4cd678c..11febf7 100644 --- a/src/index.js +++ b/src/index.js @@ -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)) { @@ -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