Vue · Junior · Question 17 of 75

Why might the DOM not be updated immediately after changing state?

Explanation

Changing state several times in a row results in a single DOM update. If you need to measure the updated DOM, call await nextTick() after the change.

Further reading

Problem with a question

Vue · Junior · question 17

Test yourself

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

Take this quiz