From: Evan You Date: Thu, 22 Oct 2020 21:49:54 +0000 (-0400) Subject: fix(runtime-core): components with static props and slots should not be force updated X-Git-Tag: v3.0.3~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e43e07998eeade153c42a9a9b3eda8fe885c88;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-core): components with static props and slots should not be force updated --- diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index a3da6e0ff4..9c5ecaf5b6 100644 --- a/packages/runtime-core/src/componentRenderUtils.ts +++ b/packages/runtime-core/src/componentRenderUtils.ts @@ -309,7 +309,7 @@ export function shouldUpdateComponent( return true } - if (optimized && patchFlag > 0) { + if (optimized && patchFlag >= 0) { if (patchFlag & PatchFlags.DYNAMIC_SLOTS) { // slot content that references values that might have changed, // e.g. in a v-for