Vue · Senior · Question 6 of 75

Since Vue 3.4, what happens when a computed recalculates to the same value?

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.

Further reading

Problem with a question

Vue · Senior · question 6

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz