From c233f4497d83c455f6e3746ca86cb29fb8d91c26 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 10 May 2022 06:30:38 -0400 Subject: [PATCH] Update hydration.ts --- packages/runtime-core/src/hydration.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 2cf5fbb9038..370b4ba0fc9 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -95,11 +95,12 @@ export function createHydrationFunctions( isFragmentStart ) - const { type, ref, shapeFlag } = vnode + const { type, ref, shapeFlag, patchFlag } = vnode const domType = node.nodeType vnode.el = node - if (vnode.patchFlag === PatchFlags.BAIL) { + if (patchFlag === PatchFlags.BAIL) { + optimized = false vnode.dynamicChildren = null }