]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(ssr): fix suspense hydration of fallback content (#7188)
authoredison <daiwei521@126.com>
Fri, 8 Dec 2023 15:06:34 +0000 (23:06 +0800)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 15:06:34 +0000 (23:06 +0800)
packages/runtime-core/src/components/Suspense.ts

index 426ca0cd32c684f41c33f32b772b4d58cf62f57e..e9cc0ff2c3e3cfc2a214239d47686c9f31df29fc 100644 (file)
@@ -464,7 +464,7 @@ function createSuspenseBoundary(
     timeout: typeof timeout === 'number' ? timeout : -1,
     activeBranch: null,
     pendingBranch: null,
-    isInFallback: true,
+    isInFallback: !isHydrating,
     isHydrating,
     isUnmounted: false,
     effects: [],