]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): pass props and children to loadingComponent (#13997)
authorindykoning <15870933+indykoning@users.noreply.github.com>
Wed, 5 Nov 2025 09:18:20 +0000 (10:18 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Nov 2025 09:18:20 +0000 (17:18 +0800)
packages/runtime-core/src/apiAsyncComponent.ts

index f5ba7781ae8036234a7eb0bb4c845af847a92860..e594944718a452ce9681d32c062940a1c7e6bc93 100644 (file)
@@ -241,7 +241,10 @@ export function defineAsyncComponent<
             error: error.value,
           })
         } else if (loadingComponent && !delayed.value) {
-          return createVNode(loadingComponent)
+          return createInnerComp(
+            loadingComponent as ConcreteComponent,
+            instance,
+          )
         }
       }
     },