From 51e43e07998eeade153c42a9a9b3eda8fe885c88 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 22 Oct 2020 17:49:54 -0400 Subject: [PATCH] fix(runtime-core): components with static props and slots should not be force updated --- packages/runtime-core/src/componentRenderUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index a3da6e0ff4f..9c5ecaf5b68 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