]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(hydration): check __asyncHydrate presence for vue3-lazy-hydration compat (#11825)
authorAdrien Foulon <6115458+Tofandel@users.noreply.github.com>
Fri, 6 Sep 2024 03:20:41 +0000 (08:20 +0500)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2024 03:20:41 +0000 (11:20 +0800)
close #11793

packages/runtime-core/src/renderer.ts

index 11736e9dff228656c64a6479ee265a60fbecf675..9b50dca23f9570117b1bb3c6c3488f9448ca548c 100644 (file)
@@ -1330,7 +1330,10 @@ function baseCreateRenderer(
             }
           }
 
-          if (isAsyncWrapperVNode) {
+          if (
+            isAsyncWrapperVNode &&
+            (type as ComponentOptions).__asyncHydrate
+          ) {
             ;(type as ComponentOptions).__asyncHydrate!(
               el as Element,
               instance,