We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3536d8 commit d2bf3ccCopy full SHA for d2bf3cc
packages/runtime-core/src/componentSlots.ts
@@ -130,9 +130,7 @@ export const updateSlots = (
130
if (__DEV__ && isHmrUpdating) {
131
// Parent was HMR updated so slot content may have changed.
132
// force update slots and mark instance for hmr as well
133
- for (const key in children as RawSlots) {
134
- if (key !== '_') slots[key] = (children as Slots)[key]
135
- }
+ extend(slots, children as Slots)
136
} else if (
137
// bail on dynamic slots (v-if, v-for, reference of scope variables)
138
!(vnode.patchFlag & PatchFlags.DYNAMIC_SLOTS)
0 commit comments