From e977c598dbe5662c74f1e71bac14e4b7fd42aff8 Mon Sep 17 00:00:00 2001 From: pengbo <57180744+PengBoUESTC@users.noreply.github.com> Date: Thu, 18 Jan 2024 10:48:27 +0800 Subject: [PATCH] chore: replace -1 to PatchFlags.HOISTED (#10146) --- packages/runtime-core/src/vnode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index 178ceec41bd..daa9413d2ee 100644 --- a/packages/runtime-core/src/vnode.ts +++ b/packages/runtime-core/src/vnode.ts @@ -665,7 +665,7 @@ export function cloneVNode( // 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,