Skip to content

Commit c233f44

Browse files
authored
Update hydration.ts
1 parent 03fb23f commit c233f44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/runtime-core/src/hydration.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ export function createHydrationFunctions(
9595
isFragmentStart
9696
)
9797

98-
const { type, ref, shapeFlag } = vnode
98+
const { type, ref, shapeFlag, patchFlag } = vnode
9999
const domType = node.nodeType
100100
vnode.el = node
101101

102-
if (vnode.patchFlag === PatchFlags.BAIL) {
102+
if (patchFlag === PatchFlags.BAIL) {
103+
optimized = false
103104
vnode.dynamicChildren = null
104105
}
105106

0 commit comments

Comments
 (0)