We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b12ae commit 9a0f75eCopy full SHA for 9a0f75e
2 files changed
packages/vue-query-devtools/src/devtools.vue
@@ -31,12 +31,15 @@ watchEffect(() => {
31
devtools.setTheme(props.theme || 'system')
32
})
33
34
+let mounted = false
35
+
36
onMounted(() => {
37
devtools.mount(div.value as HTMLElement)
38
+ mounted = true
39
40
41
onScopeDispose(() => {
- devtools.unmount()
42
+ if (mounted) devtools.unmount()
43
44
</script>
45
packages/vue-query-devtools/src/devtoolsPanel.vue
@@ -36,12 +36,15 @@ watchEffect(() => {
devtools.setTheme(props.theme)
46
47
48
49
50
0 commit comments