remove Vue.component from hooks

This commit is contained in:
Henry Jameson 2021-04-25 12:50:17 +03:00
commit 76a2e6befb
2 changed files with 3 additions and 4 deletions

View file

@ -38,7 +38,7 @@ const withLoadMore = ({
this.fetchEntries()
}
},
destroyed () {
unmounted () {
window.removeEventListener('scroll', this.scrollLoad)
destroy && destroy(this.$props, this.$store)
},