Skip to content

Commit 8e6c337

Browse files
authored
fix(hydration): check __asyncHydrate presence for vue3-lazy-hydration compat (vuejs#11825)
close vuejs#11793
1 parent 6b7901d commit 8e6c337

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/runtime-core/src/renderer.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,10 @@ function baseCreateRenderer(
13301330
}
13311331
}
13321332

1333-
if (isAsyncWrapperVNode) {
1333+
if (
1334+
isAsyncWrapperVNode &&
1335+
(type as ComponentOptions).__asyncHydrate
1336+
) {
13341337
;(type as ComponentOptions).__asyncHydrate!(
13351338
el as Element,
13361339
instance,

0 commit comments

Comments
 (0)