Inline computed in templates for caching benefits #10437
-
Hello dear community, Say I have some kind of component which opens a slot with the current selected <MyListComponent [...]>
<template #selection="{ item }">
<MyDisplayComponent v-bind="mapItemToDisplayProps(item)">
</MyDisplayComponent>
</template>
</MyListComponent> Whenever <MyListComponent [...]>
<template #selection="{ item }">
<MyDisplayComponent v-bind="computed(() => mapItemToDisplayProps(item))">
</MyDisplayComponent>
</template>
</MyListComponent> Thanks for your insights, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
v-memo