Преглед изворни кода

fix(ssr): fix suspense hydration of fallback content (#7188)

edison пре 2 година
родитељ
комит
60415b5d67
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/runtime-core/src/components/Suspense.ts

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

@@ -464,7 +464,7 @@ function createSuspenseBoundary(
     timeout: typeof timeout === 'number' ? timeout : -1,
     activeBranch: null,
     pendingBranch: null,
-    isInFallback: true,
+    isInFallback: !isHydrating,
     isHydrating,
     isUnmounted: false,
     effects: [],