Skip to content

Commit

Permalink
chore: fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
pmdartus committed May 30, 2022
1 parent b9fd6a6 commit e63a8ef
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/@lwc/engine-core/src/framework/rendering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function unmount(vnode: VNode, parent: ParentNode, doRemove: boolean = false) {
unmountVNodes(
isUndefined(vnode.aChildren) ? vnode.children : vnode.aChildren,
(elm as ParentNode) ?? parent,
!elm && doRemove
true // slot content is removed to trigger `slotchange` event when removing slot.
);
break;

Expand Down Expand Up @@ -579,13 +579,6 @@ function allocateInSlot(vm: VM, children: VNodes, owner: VM) {
}

const { vnodes } = (cmpSlots[slotName] = cmpSlots[slotName] || { owner, vnodes: [] });
// re-keying the vnodes is necessary to avoid conflicts with default content for the slot
// which might have similar keys. Each vnode will always have a key that
// starts with a numeric character from compiler. In this case, we add a unique
// notation for slotted vnodes keys, e.g.: `@foo:1:1`
if (!isUndefined(vnode.key)) {
vnode.key = `@${slotName}:${vnode.key}`;
}
ArrayPush.call(vnodes, vnode);
}
if (isFalse(vm.isDirty)) {
Expand Down

0 comments on commit e63a8ef

Please sign in to comment.