Lifecycle hook beforeDestroy is not emitted in Vue3

Viewed 12712

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>
1 Answers
Related