]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): components with static props and slots should not be force updated
authorEvan You <yyx990803@gmail.com>
Thu, 22 Oct 2020 21:49:54 +0000 (17:49 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 22 Oct 2020 21:50:05 +0000 (17:50 -0400)
packages/runtime-core/src/componentRenderUtils.ts

index a3da6e0ff4f2b589ad7b3cee9af9fb5fadb16c96..9c5ecaf5b68dbf583f16388e3639c9ef66e0069a 100644 (file)
@@ -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