From 68d5c6baeb7ca417cb6da9c338d3d093d8ef3baf Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 11 Mar 2024 14:43:18 +0100 Subject: [PATCH] migration: vue3 OPTIONS_BEFORE_DESTROY --- app/src/components/CardDeckFeed.vue | 2 +- app/src/components/LazyRenderer.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/components/CardDeckFeed.vue b/app/src/components/CardDeckFeed.vue index 26c6b2f4..f6710077 100644 --- a/app/src/components/CardDeckFeed.vue +++ b/app/src/components/CardDeckFeed.vue @@ -79,7 +79,7 @@ export default { ) }, - beforeDestroy() { + beforeUnmount() { window.removeEventListener('scroll', this.onScroll) this.$refs.feed.removeEventListener('keydown', this.onKeydown) }, diff --git a/app/src/components/LazyRenderer.vue b/app/src/components/LazyRenderer.vue index d2b6b2cc..b1b360af 100644 --- a/app/src/components/LazyRenderer.vue +++ b/app/src/components/LazyRenderer.vue @@ -70,7 +70,7 @@ export default { this.observer.observe(this.$el) }, - beforeDestroy() { + beforeUnmount() { this.observer.disconnect() }, }