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 bb4ae25 commit f13c11cCopy full SHA for f13c11c
packages/runtime-vapor/src/vdomInterop.ts
@@ -236,12 +236,10 @@ function renderVDOMSlot(
236
frag.insert = (parentNode, anchor) => {
237
if (!isMounted) {
238
renderEffect(() => {
239
- const vnode = renderSlot(
240
- slotsRef.value,
241
- isFunction(name) ? name() : name,
242
- props,
243
- )
244
- if ((vnode.children as any[]).length) {
+ const vnode = slotsRef.value
+ ? renderSlot(slotsRef.value, isFunction(name) ? name() : name, props)
+ : null
+ if (vnode && (vnode.children as any[]).length) {
245
if (fallbackNodes) {
246
remove(fallbackNodes, parentNode)
247
fallbackNodes = undefined
0 commit comments