Pattern: Use of deprecated destroyed
/beforeDestroy
hooks
Issue: -
This rule reports use of deprecated destroyed
and beforeDestroy
lifecycle hooks. (in Vue.js 3.0.0+).
<script>
export default {
/* ✓ GOOD */
beforeMount () {},
mounted () {},
beforeUnmount () {},
unmounted () {},
/* ✗ BAD */
beforeDestroy () {},
destroyed () {}
}
</script>