chore: replace -1 to PatchFlags.HOISTED (#10146)

This commit is contained in:
pengbo 2024-01-18 10:48:27 +08:00 committed by GitHub
parent c2b274a887
commit e977c598db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,