Skip to content

Commit

Permalink
fix(hydration): check __asyncHydrate presence for vue3-lazy-hydration…
Browse files Browse the repository at this point in the history
… compat (#11825)

close #11793
  • Loading branch information
Tofandel committed Sep 6, 2024
1 parent 6b7901d commit 8e6c337
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,10 @@ function baseCreateRenderer(
}
}

if (isAsyncWrapperVNode) {
if (
isAsyncWrapperVNode &&
(type as ComponentOptions).__asyncHydrate
) {
;(type as ComponentOptions).__asyncHydrate!(
el as Element,
instance,
Expand Down

0 comments on commit 8e6c337

Please sign in to comment.