File tree 1 file changed +16
-14
lines changed
packages/svelte-query-devtools/src
1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 20
20
let devtools: TanstackQueryDevtools | undefined
21
21
22
22
if (DEV && BROWSER ) {
23
- onMount (async () => {
24
- const QueryDevtools = (await import (' @tanstack/query-devtools' ))
25
- .TanstackQueryDevtools
26
- devtools = new QueryDevtools ({
27
- client ,
28
- queryFlavor: ' Svelte Query' ,
29
- version: ' 5' ,
30
- onlineManager ,
31
- buttonPosition ,
32
- position ,
33
- initialIsOpen ,
34
- errorTypes ,
35
- })
23
+ onMount (() => {
24
+ import (' @tanstack/query-devtools' ).then ((m ) => {
25
+ const QueryDevtools = m .TanstackQueryDevtools
26
+
27
+ devtools = new QueryDevtools ({
28
+ client ,
29
+ queryFlavor: ' Svelte Query' ,
30
+ version: ' 5' ,
31
+ onlineManager ,
32
+ buttonPosition ,
33
+ position ,
34
+ initialIsOpen ,
35
+ errorTypes ,
36
+ })
36
37
37
- devtools .mount (ref )
38
+ devtools .mount (ref )
39
+ })
38
40
39
41
return () => {
40
42
devtools ?.unmount ()
You can’t perform that action at this time.
0 commit comments