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 3f56a86 commit 0c2bf1eCopy full SHA for 0c2bf1e
3 files changed
.changeset/khaki-coats-divide.md
@@ -0,0 +1,5 @@
1
+---
2
+'@tanstack/vue-query-devtools': patch
3
4
+
5
+Fix Vue SSR devtools cleanup by only registering `unmount()` after `mount()` has run.
packages/vue-query-devtools/src/devtools.vue
@@ -33,10 +33,9 @@ watchEffect(() => {
33
34
onMounted(() => {
35
devtools.mount(div.value as HTMLElement)
36
-})
37
-
38
-onScopeDispose(() => {
39
- devtools.unmount()
+ onScopeDispose(() => {
+ devtools.unmount()
+ })
40
})
41
</script>
42
packages/vue-query-devtools/src/devtoolsPanel.vue
@@ -38,10 +38,9 @@ watchEffect(() => {
43
44
45
46
47
0 commit comments