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 56a7f9d commit d1ff736Copy full SHA for d1ff736
packages/runtime-vapor/src/componentSlots.ts
@@ -126,12 +126,13 @@ export function createSlot(
126
const renderSlot = () => {
127
const slot = getSlot(rawSlots, isFunction(name) ? name() : name)
128
if (slot) {
129
+ fragment.fallback = fallback
130
// create and cache bound version of the slot to make it stable
131
// so that we avoid unnecessary updates if it resolves to the same slot
132
fragment.update(
133
slot._bound ||
134
(slot._bound = () => {
- const slotContent = slot(slotProps)
135
+ let slotContent = slot(slotProps)
136
if (slotContent instanceof DynamicFragment) {
137
slotContent.fallback = fallback
138
}
0 commit comments