Computed (or getters) with unchanged value still triggers reactivity. #9658
-
First, the playground example. ExplanationThere are two computed values Both OutcomeWe can see that What happened?Is that expected? The reasonI have a heavy component that use a lot of transitive getter in a Vuetify |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've added a watcher from the computed properties, showing that the watcher is only called when value of the computed is changed. What I'd expect is that behavior should be built in. Is there any reason for that? |
Beta Was this translation helpful? Give feedback.
-
OK, it seems that it was already known, and fixed in Vue 3.4: https://blog.vuejs.org/posts/vue-3-4#more-efficient-reactivity-system We have no hope for Vue 2 😢 |
Beta Was this translation helpful? Give feedback.
OK, it seems that it was already known, and fixed in Vue 3.4: https://blog.vuejs.org/posts/vue-3-4#more-efficient-reactivity-system
The PR: #5912
We have no hope for Vue 2 😢