: null
}
-export function ensureVaporSlotFallback(
+function ensureVaporSlotFallback(
vnodes: VNodeArrayChildren | null | undefined,
fallback?: () => VNodeArrayChildren,
): void {
currentInstance,
ensureHydrationRenderer,
ensureRenderer,
- ensureVaporSlotFallback,
isEmitListener,
isKeepAlive,
isRef,
slotsRef.value,
isFunction(name) ? name() : name,
props,
+ fallback as any,
)
let children = vnode.children as any[]
- // handle forwarded vapor slot without its own fallback
- // use the fallback provided by the slot outlet
- ensureVaporSlotFallback(children, fallback as any)
isValidSlot = children.length > 0
}