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>- ✓Correct answer: Skips updating the subtree unless one of the values in the array changes
- 2Caches the HTTP response for the item
- 3Renders the element only once ever
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.