fix: node similarity checking (#949)

pull/951/head
Mohammad Hasani 4 years ago committed by GitHub
parent 3aa02ed1ad
commit d66905438d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@ function sameVnode (vnode1: VNode, vnode2: VNode): boolean {
const isSameIs = vnode1.data?.is === vnode2.data?.is
const isSameSel = vnode1.sel === vnode2.sel
return isSameSel || isSameKey || isSameIs
return isSameSel && isSameKey && isSameIs
}
function isVnode (vnode: any): vnode is VNode {

Loading…
Cancel
Save