<script lang="ts">
  export default {
    beforeUnmount() {
      console.log('Before component unmounts!')
    },

    unmounted() {
      console.log('Component unmounted!')
    },
  }
</script>