Vue · Senior · Question 6 of 75
Since Vue 3.4, what happens when a computed recalculates to the same value?
- ✓Correct answer: Dependents are not triggered, because computed values are compared before notifying
- 2All dependents re-render anyway
- 3The computed throws a warning
Explanation
const isEven = computed(() => count.value % 2 === 0) no longer re-runs downstream effects when count goes from 2 to 4. Returning a new object each time still defeats this.