Skip to content

Commit

Permalink
fix(runtime-core): components with static props and slots should not …
Browse files Browse the repository at this point in the history
…be force updated
  • Loading branch information
yyx990803 committed Oct 22, 2020
1 parent cd7834a commit 51e43e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/componentRenderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51e43e0

Please sign in to comment.