Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
developit authored and marvinhagemeister committed Sep 27, 2022
1 parent fc32565 commit 6b70436
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/diff/index.js
Expand Up @@ -516,10 +516,9 @@ export function unmount(vnode, parentVNode, skipRemove) {
}

if ((r = vnode._children)) {
let skipRemoveChild = skipRemove || typeof vnode.type != 'function';
for (let i = 0; i < r.length; i++) {
if (r[i]) {
unmount(r[i], parentVNode, skipRemoveChild);
unmount(r[i], parentVNode, skipRemove || typeof vnode.type !== 'function');
}
}
}
Expand Down

0 comments on commit 6b70436

Please sign in to comment.