]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(suspense): handle nested sync suspense for hydration
author白雾三语 <32354856+baiwusanyu-c@users.noreply.github.com>
Thu, 11 May 2023 07:01:33 +0000 (15:01 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 11 May 2023 07:47:01 +0000 (08:47 +0100)
ref https://github.com/vuejs/core/commit/e1475129fc6f8c086c2ec667476900b8c8f46774

packages/runtime-core/src/components/Suspense.ts

index 174f33e13ad6b15f3dfbad0e65e881b2efc1c0e1..0fa07d9beecc154bf768db828f644a82a126e252 100644 (file)
@@ -755,7 +755,7 @@ function hydrateSuspense(
     optimized
   )
   if (suspense.deps === 0) {
-    suspense.resolve()
+    suspense.resolve(false, true)
   }
   return result
   /* eslint-enable no-restricted-globals */