]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: tweaks edison/feat/SuspenseVaporInterop 13355/head
authordaiwei <daiwei521@126.com>
Wed, 16 Jul 2025 13:17:20 +0000 (21:17 +0800)
committerdaiwei <daiwei521@126.com>
Wed, 16 Jul 2025 13:17:20 +0000 (21:17 +0800)
packages/runtime-vapor/src/vdomInterop.ts

index 0cea11ce5ac57fe9fd77900158f335e7a4013651..3161282e548740e749464d6366640cb3dcec1dcf 100644 (file)
@@ -58,7 +58,6 @@ const vaporInteropImpl: Omit<
       setParentSuspense(parentSuspense)
     }
 
-    const component = vnode.type as any as VaporComponent
     const dynamicPropSource: (() => any)[] & { [interopKey]?: boolean } = [
       () => propsRef.value,
     ]
@@ -66,7 +65,7 @@ const vaporInteropImpl: Omit<
     dynamicPropSource[interopKey] = true
     // @ts-expect-error
     const instance = (vnode.component = createComponent(
-      component,
+      vnode.type as any as VaporComponent,
       {
         $: dynamicPropSource,
       } as RawProps,