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 d4be39b commit fc32565
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/diff/index.js
Expand Up @@ -516,9 +516,10 @@ 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, skipRemove || typeof vnode.type != 'function');
unmount(r[i], parentVNode, skipRemoveChild);
}
}
}
Expand Down

0 comments on commit fc32565

Please sign in to comment.