Skip to content

Commit 51e43e0

Browse files
committed
fix(runtime-core): components with static props and slots should not be force updated
1 parent cd7834a commit 51e43e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/componentRenderUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export function shouldUpdateComponent(
309309
return true
310310
}
311311

312-
if (optimized && patchFlag > 0) {
312+
if (optimized && patchFlag >= 0) {
313313
if (patchFlag & PatchFlags.DYNAMIC_SLOTS) {
314314
// slot content that references values that might have changed,
315315
// e.g. in a v-for

0 commit comments

Comments
 (0)