Skip to content

Commit e977c59

Browse files
authored
chore: replace -1 to PatchFlags.HOISTED (#10146)
1 parent c2b274a commit e977c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/vnode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ export function cloneVNode<T, U>(
665665
// fast paths only.
666666
patchFlag:
667667
extraProps && vnode.type !== Fragment
668-
? patchFlag === -1 // hoisted node
668+
? patchFlag === PatchFlags.HOISTED // hoisted node
669669
? PatchFlags.FULL_PROPS
670670
: patchFlag | PatchFlags.FULL_PROPS
671671
: patchFlag,

0 commit comments

Comments
 (0)