Skip to content

Commit

Permalink
chore: replace -1 to PatchFlags.HOISTED (#10146)
Browse files Browse the repository at this point in the history
  • Loading branch information
PengBoUESTC authored Jan 18, 2024
1 parent c2b274a commit e977c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/vnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ export function cloneVNode<T, U>(
// fast paths only.
patchFlag:
extraProps && vnode.type !== Fragment
? patchFlag === -1 // hoisted node
? patchFlag === PatchFlags.HOISTED // hoisted node
? PatchFlags.FULL_PROPS
: patchFlag | PatchFlags.FULL_PROPS
: patchFlag,
Expand Down

0 comments on commit e977c59

Please sign in to comment.