fix(runtime-core): components with static props and slots should not be force updated

This commit is contained in:
Evan You 2020-10-22 17:49:54 -04:00
parent cd7834aa50
commit 51e43e0799

View 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