Skip to content

Commit 40c4b2a

Browse files
authored
fix(runtime-core): pass props and children to loadingComponent (#13997)
1 parent e6544ac commit 40c4b2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/runtime-core/src/apiAsyncComponent.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@ export function defineAsyncComponent<
241241
error: error.value,
242242
})
243243
} else if (loadingComponent && !delayed.value) {
244-
return createVNode(loadingComponent)
244+
return createInnerComp(
245+
loadingComponent as ConcreteComponent,
246+
instance,
247+
)
245248
}
246249
}
247250
},

0 commit comments

Comments
 (0)