Vue · Senior · Question 4 of 75

Why does changing state 100 times in one handler cause only one re-render?

Explanation

Each mutation triggers effects, but render jobs are deduplicated in a queue. nextTick() returns the promise of that flush.

Further reading

Problem with a question

Vue · Senior · question 4

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