Skip to content

Commit 2ac6638

Browse files
committed
Update Svelte devtools types error
1 parent 609c0a2 commit 2ac6638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte-query-devtools/src/Devtools.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
export let errorTypes: DevToolsErrorType[] = []
1818
1919
let ref: HTMLDivElement
20-
let devtools: TanstackQueryDevtools
20+
let devtools: TanstackQueryDevtools | undefined
2121
2222
if (DEV && BROWSER) {
2323
onMount(async () => {
@@ -37,7 +37,7 @@
3737
devtools.mount(ref)
3838
3939
return () => {
40-
devtools.unmount()
40+
devtools?.unmount()
4141
}
4242
})
4343
}

0 commit comments

Comments
 (0)