I use vue3 beta 18, found that beforeDestroy
is not emitted when I remove a component which is rendered by dynamic component in v-for
.
Neither are deactivated, destroyed.
The component is "disappeared", when I remove it from the collection "windows".
<template>
component(v-for="ww in windows" :key="ww.$id" :is="ww.component" v-bind="ww.props")
</template>
In Vue 3 beforeDestroy
and destroyed
hooks are replaced with beforeUnmount
and unmounted
https://v3.vuejs.org/api/options-lifecycle-hooks.html#beforeunmount
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With