Explorar o código

fix(runtime-core): pass props and children to loadingComponent (#13997)

indykoning hai 5 meses
pai
achega
40c4b2a876
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      packages/runtime-core/src/apiAsyncComponent.ts

+ 4 - 1
packages/runtime-core/src/apiAsyncComponent.ts

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