1
0
forked from test/crm

fix: stop recording when app is unmounted

This commit is contained in:
Shariq Ansari 2024-08-16 18:40:00 +05:30
parent a439433977
commit 916a2c53af

View File

@ -39,6 +39,8 @@
<script setup>
import AppsIcon from '@/components/Icons/AppsIcon.vue'
import { Popover, createResource } from 'frappe-ui'
import { onUnmounted } from 'vue';
import { stopRecording } from '@/telemetry';
const props = defineProps({
active: Boolean,
@ -70,4 +72,8 @@ const apps = createResource({
return _apps
},
})
onUnmounted(() => {
stopRecording()
})
</script>