I want to keep certain part of my component alive when v-if="false"
The part I want to keep alive contains a slot, and it doesn't work.
The component within the slot is still mounted every time the v-if changes.
Is it possible to keep it alive in some way?
<div v-if="index === 1">
<keep-alive >
<div :key="tab.id">
<slot></slot>
</div>
</keep-alive>
</div>
keep-alive
one level upper, before the div with thev-if
? – Fab