Vue · Senior · Question 13 of 75

What does v-memo do?

<div v-for="item in list" :key="item.id" v-memo="[item.id === selectedId]">...</div>

Explanation

Useful for very large lists where selection changes affect only two items. v-once renders once and never updates; v-memo is the conditional version.

Further reading

Problem with a question

Vue · Senior · question 13

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