Skip to content

Commit

Permalink
Update hydration.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored May 10, 2022
1 parent 03fb23f commit c233f44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c233f44

Please sign in to comment.