From 9498a8b19727cc35f4197eb5160e31d9403e83cd Mon Sep 17 00:00:00 2001 From: indykoning <15870933+indykoning@users.noreply.github.com> Date: Fri, 17 Oct 2025 14:01:58 +0200 Subject: [PATCH 1/3] Pass props and children to loadingComponent --- packages/runtime-core/src/apiAsyncComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiAsyncComponent.ts b/packages/runtime-core/src/apiAsyncComponent.ts index f5ba7781ae8..ef32f7776ad 100644 --- a/packages/runtime-core/src/apiAsyncComponent.ts +++ b/packages/runtime-core/src/apiAsyncComponent.ts @@ -241,7 +241,7 @@ export function defineAsyncComponent< error: error.value, }) } else if (loadingComponent && !delayed.value) { - return createVNode(loadingComponent) + return createInnerComp(loadingComponent, instance) } } }, From 702adcbc28f0af4f4020cc6612a3d68e6109238e Mon Sep 17 00:00:00 2001 From: indykoning <15870933+indykoning@users.noreply.github.com> Date: Fri, 17 Oct 2025 17:27:07 +0200 Subject: [PATCH 2/3] Added types Co-authored-by: edison --- packages/runtime-core/src/apiAsyncComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiAsyncComponent.ts b/packages/runtime-core/src/apiAsyncComponent.ts index ef32f7776ad..81ca843d409 100644 --- a/packages/runtime-core/src/apiAsyncComponent.ts +++ b/packages/runtime-core/src/apiAsyncComponent.ts @@ -241,7 +241,7 @@ export function defineAsyncComponent< error: error.value, }) } else if (loadingComponent && !delayed.value) { - return createInnerComp(loadingComponent, instance) + return createInnerComp(loadingComponent as ConcreteComponent, instance) } } }, From f2155e204ca5ea245af5a40bc29157a1c39a881a Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 2 Nov 2025 12:40:03 +0000 Subject: [PATCH 3/3] [autofix.ci] apply automated fixes --- packages/runtime-core/src/apiAsyncComponent.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiAsyncComponent.ts b/packages/runtime-core/src/apiAsyncComponent.ts index 81ca843d409..e594944718a 100644 --- a/packages/runtime-core/src/apiAsyncComponent.ts +++ b/packages/runtime-core/src/apiAsyncComponent.ts @@ -241,7 +241,10 @@ export function defineAsyncComponent< error: error.value, }) } else if (loadingComponent && !delayed.value) { - return createInnerComp(loadingComponent as ConcreteComponent, instance) + return createInnerComp( + loadingComponent as ConcreteComponent, + instance, + ) } } },