From 02da97a8df6f55262456d11edab73607475a1356 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 27 Jan 2025 10:00:09 +0100 Subject: [PATCH] fix(VnSection): destroy data when unmounted --- src/components/common/VnSection.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/common/VnSection.vue b/src/components/common/VnSection.vue index 376eaf03d..4d7984482 100644 --- a/src/components/common/VnSection.vue +++ b/src/components/common/VnSection.vue @@ -75,6 +75,10 @@ onMounted(() => { onUnmounted(unsubscribe); }); +onUnmounted(() => { + if (arrayData) arrayData.destroy(); +}); + function checkIsMain() { isMainSection.value = sectionValue.value == route.name; if (!isMainSection.value && arrayData) {