Vue · Senior · Question 4 of 75
Why does changing state 100 times in one handler cause only one re-render?
- ✓Correct answer: Component updates are queued in a scheduler and flushed once in a microtask
- 2Vue throttles renders to one per second
- 3Only the last assignment is kept in memory
Explanation
Each mutation triggers effects, but render jobs are deduplicated in a queue. nextTick() returns the promise of that flush.