@tanstack/solid-query-devtools 5.90.3 → 5.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/dev.cjs CHANGED
@@ -21,8 +21,8 @@ __export(devtools_exports, {
21
21
  default: () => SolidQueryDevtools
22
22
  });
23
23
  function SolidQueryDevtools(props) {
24
- const queryClient = solidQuery.useQueryClient();
25
- const client = solidJs.createMemo(() => props.client || queryClient);
24
+ const queryClient = solidQuery.useQueryClient(props.client);
25
+ const client = solidJs.createMemo(() => queryClient);
26
26
  let ref;
27
27
  const devtools = new queryDevtools.TanstackQueryDevtools({
28
28
  client: client(),
@@ -35,7 +35,8 @@ function SolidQueryDevtools(props) {
35
35
  errorTypes: props.errorTypes,
36
36
  styleNonce: props.styleNonce,
37
37
  shadowDOMTarget: props.shadowDOMTarget,
38
- hideDisabledQueries: props.hideDisabledQueries
38
+ hideDisabledQueries: props.hideDisabledQueries,
39
+ theme: props.theme
39
40
  });
40
41
  solidJs.createEffect(() => {
41
42
  devtools.setClient(client());
@@ -58,6 +59,9 @@ function SolidQueryDevtools(props) {
58
59
  solidJs.createEffect(() => {
59
60
  devtools.setErrorTypes(props.errorTypes || []);
60
61
  });
62
+ solidJs.createEffect(() => {
63
+ devtools.setTheme(props.theme || "system");
64
+ });
61
65
  solidJs.onMount(() => {
62
66
  devtools.mount(ref);
63
67
  solidJs.onCleanup(() => devtools.unmount());
@@ -82,8 +86,8 @@ __export(devtoolsPanel_exports, {
82
86
  default: () => SolidQueryDevtoolsPanel
83
87
  });
84
88
  function SolidQueryDevtoolsPanel(props) {
85
- const queryClient = solidQuery.useQueryClient();
86
- const client = solidJs.createMemo(() => props.client || queryClient);
89
+ const queryClient = solidQuery.useQueryClient(props.client);
90
+ const client = solidJs.createMemo(() => queryClient);
87
91
  let ref;
88
92
  const {
89
93
  errorTypes,
@@ -103,7 +107,8 @@ function SolidQueryDevtoolsPanel(props) {
103
107
  styleNonce,
104
108
  shadowDOMTarget,
105
109
  onClose: props.onClose,
106
- hideDisabledQueries
110
+ hideDisabledQueries,
111
+ theme: props.theme
107
112
  });
108
113
  solidJs.createEffect(() => {
109
114
  devtools.setClient(client());
@@ -115,6 +120,9 @@ function SolidQueryDevtoolsPanel(props) {
115
120
  solidJs.createEffect(() => {
116
121
  devtools.setErrorTypes(props.errorTypes || []);
117
122
  });
123
+ solidJs.createEffect(() => {
124
+ devtools.setTheme(props.theme || "system");
125
+ });
118
126
  solidJs.onMount(() => {
119
127
  devtools.mount(ref);
120
128
  solidJs.onCleanup(() => devtools.unmount());
package/build/dev.js CHANGED
@@ -18,10 +18,10 @@ function clientOnly(fn) {
18
18
  }
19
19
 
20
20
  // src/index.tsx
21
- var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/DFW22NEL.js')) : function() {
21
+ var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/BCD44V6M.js')) : function() {
22
22
  return null;
23
23
  };
24
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/QH7X6ZDM.js')) : function() {
24
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/VKJ7SILT.js')) : function() {
25
25
  return null;
26
26
  };
27
27
 
package/build/dev.jsx CHANGED
@@ -30,10 +30,10 @@ function clientOnly(fn) {
30
30
  }
31
31
 
32
32
  // src/index.tsx
33
- var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/4LKOWRT2.jsx")) : function() {
33
+ var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/32HRKFKI.jsx")) : function() {
34
34
  return null;
35
35
  };
36
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/YI6MKFAH.jsx")) : function() {
36
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/NDFIDQLQ.jsx")) : function() {
37
37
  return null;
38
38
  };
39
39
  export {
@@ -3,8 +3,8 @@ import { createEffect, createMemo, onCleanup, onMount } from "solid-js";
3
3
  import { onlineManager, useQueryClient } from "@tanstack/solid-query";
4
4
  import { TanstackQueryDevtools } from "@tanstack/query-devtools";
5
5
  function SolidQueryDevtools(props) {
6
- const queryClient = useQueryClient();
7
- const client = createMemo(() => props.client || queryClient);
6
+ const queryClient = useQueryClient(props.client);
7
+ const client = createMemo(() => queryClient);
8
8
  let ref;
9
9
  const devtools = new TanstackQueryDevtools({
10
10
  client: client(),
@@ -17,7 +17,8 @@ function SolidQueryDevtools(props) {
17
17
  errorTypes: props.errorTypes,
18
18
  styleNonce: props.styleNonce,
19
19
  shadowDOMTarget: props.shadowDOMTarget,
20
- hideDisabledQueries: props.hideDisabledQueries
20
+ hideDisabledQueries: props.hideDisabledQueries,
21
+ theme: props.theme
21
22
  });
22
23
  createEffect(() => {
23
24
  devtools.setClient(client());
@@ -40,6 +41,9 @@ function SolidQueryDevtools(props) {
40
41
  createEffect(() => {
41
42
  devtools.setErrorTypes(props.errorTypes || []);
42
43
  });
44
+ createEffect(() => {
45
+ devtools.setTheme(props.theme || "system");
46
+ });
43
47
  onMount(() => {
44
48
  devtools.mount(ref);
45
49
  onCleanup(() => devtools.unmount());
@@ -6,8 +6,8 @@ import { TanstackQueryDevtools } from '@tanstack/query-devtools';
6
6
  // src/devtools.tsx
7
7
  var _tmpl$ = /* @__PURE__ */ template(`<div class=tsqd-parent-container>`);
8
8
  function SolidQueryDevtools(props) {
9
- const queryClient = useQueryClient();
10
- const client = createMemo(() => props.client || queryClient);
9
+ const queryClient = useQueryClient(props.client);
10
+ const client = createMemo(() => queryClient);
11
11
  let ref;
12
12
  const devtools = new TanstackQueryDevtools({
13
13
  client: client(),
@@ -20,7 +20,8 @@ function SolidQueryDevtools(props) {
20
20
  errorTypes: props.errorTypes,
21
21
  styleNonce: props.styleNonce,
22
22
  shadowDOMTarget: props.shadowDOMTarget,
23
- hideDisabledQueries: props.hideDisabledQueries
23
+ hideDisabledQueries: props.hideDisabledQueries,
24
+ theme: props.theme
24
25
  });
25
26
  createEffect(() => {
26
27
  devtools.setClient(client());
@@ -43,6 +44,9 @@ function SolidQueryDevtools(props) {
43
44
  createEffect(() => {
44
45
  devtools.setErrorTypes(props.errorTypes || []);
45
46
  });
47
+ createEffect(() => {
48
+ devtools.setTheme(props.theme || "system");
49
+ });
46
50
  onMount(() => {
47
51
  devtools.mount(ref);
48
52
  onCleanup(() => devtools.unmount());
@@ -3,8 +3,8 @@ import { createEffect, createMemo, onCleanup, onMount } from "solid-js";
3
3
  import { onlineManager, useQueryClient } from "@tanstack/solid-query";
4
4
  import { TanstackQueryDevtoolsPanel } from "@tanstack/query-devtools";
5
5
  function SolidQueryDevtoolsPanel(props) {
6
- const queryClient = useQueryClient();
7
- const client = createMemo(() => props.client || queryClient);
6
+ const queryClient = useQueryClient(props.client);
7
+ const client = createMemo(() => queryClient);
8
8
  let ref;
9
9
  const { errorTypes, styleNonce, shadowDOMTarget, hideDisabledQueries } = props;
10
10
  const devtools = new TanstackQueryDevtoolsPanel({
@@ -19,7 +19,8 @@ function SolidQueryDevtoolsPanel(props) {
19
19
  styleNonce,
20
20
  shadowDOMTarget,
21
21
  onClose: props.onClose,
22
- hideDisabledQueries
22
+ hideDisabledQueries,
23
+ theme: props.theme
23
24
  });
24
25
  createEffect(() => {
25
26
  devtools.setClient(client());
@@ -31,6 +32,9 @@ function SolidQueryDevtoolsPanel(props) {
31
32
  createEffect(() => {
32
33
  devtools.setErrorTypes(props.errorTypes || []);
33
34
  });
35
+ createEffect(() => {
36
+ devtools.setTheme(props.theme || "system");
37
+ });
34
38
  onMount(() => {
35
39
  devtools.mount(ref);
36
40
  onCleanup(() => devtools.unmount());
@@ -6,8 +6,8 @@ import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools';
6
6
  // src/devtoolsPanel.tsx
7
7
  var _tmpl$ = /* @__PURE__ */ template(`<div class=tsqd-parent-container>`);
8
8
  function SolidQueryDevtoolsPanel(props) {
9
- const queryClient = useQueryClient();
10
- const client = createMemo(() => props.client || queryClient);
9
+ const queryClient = useQueryClient(props.client);
10
+ const client = createMemo(() => queryClient);
11
11
  let ref;
12
12
  const {
13
13
  errorTypes,
@@ -27,7 +27,8 @@ function SolidQueryDevtoolsPanel(props) {
27
27
  styleNonce,
28
28
  shadowDOMTarget,
29
29
  onClose: props.onClose,
30
- hideDisabledQueries
30
+ hideDisabledQueries,
31
+ theme: props.theme
31
32
  });
32
33
  createEffect(() => {
33
34
  devtools.setClient(client());
@@ -39,6 +40,9 @@ function SolidQueryDevtoolsPanel(props) {
39
40
  createEffect(() => {
40
41
  devtools.setErrorTypes(props.errorTypes || []);
41
42
  });
43
+ createEffect(() => {
44
+ devtools.setTheme(props.theme || "system");
45
+ });
42
46
  onMount(() => {
43
47
  devtools.mount(ref);
44
48
  onCleanup(() => devtools.unmount());
package/build/index.cjs CHANGED
@@ -21,8 +21,8 @@ __export(devtools_exports, {
21
21
  default: () => SolidQueryDevtools
22
22
  });
23
23
  function SolidQueryDevtools(props) {
24
- const queryClient = solidQuery.useQueryClient();
25
- const client = solidJs.createMemo(() => props.client || queryClient);
24
+ const queryClient = solidQuery.useQueryClient(props.client);
25
+ const client = solidJs.createMemo(() => queryClient);
26
26
  let ref;
27
27
  const devtools = new queryDevtools.TanstackQueryDevtools({
28
28
  client: client(),
@@ -35,7 +35,8 @@ function SolidQueryDevtools(props) {
35
35
  errorTypes: props.errorTypes,
36
36
  styleNonce: props.styleNonce,
37
37
  shadowDOMTarget: props.shadowDOMTarget,
38
- hideDisabledQueries: props.hideDisabledQueries
38
+ hideDisabledQueries: props.hideDisabledQueries,
39
+ theme: props.theme
39
40
  });
40
41
  solidJs.createEffect(() => {
41
42
  devtools.setClient(client());
@@ -58,6 +59,9 @@ function SolidQueryDevtools(props) {
58
59
  solidJs.createEffect(() => {
59
60
  devtools.setErrorTypes(props.errorTypes || []);
60
61
  });
62
+ solidJs.createEffect(() => {
63
+ devtools.setTheme(props.theme || "system");
64
+ });
61
65
  solidJs.onMount(() => {
62
66
  devtools.mount(ref);
63
67
  solidJs.onCleanup(() => devtools.unmount());
@@ -82,8 +86,8 @@ __export(devtoolsPanel_exports, {
82
86
  default: () => SolidQueryDevtoolsPanel
83
87
  });
84
88
  function SolidQueryDevtoolsPanel(props) {
85
- const queryClient = solidQuery.useQueryClient();
86
- const client = solidJs.createMemo(() => props.client || queryClient);
89
+ const queryClient = solidQuery.useQueryClient(props.client);
90
+ const client = solidJs.createMemo(() => queryClient);
87
91
  let ref;
88
92
  const {
89
93
  errorTypes,
@@ -103,7 +107,8 @@ function SolidQueryDevtoolsPanel(props) {
103
107
  styleNonce,
104
108
  shadowDOMTarget,
105
109
  onClose: props.onClose,
106
- hideDisabledQueries
110
+ hideDisabledQueries,
111
+ theme: props.theme
107
112
  });
108
113
  solidJs.createEffect(() => {
109
114
  devtools.setClient(client());
@@ -115,6 +120,9 @@ function SolidQueryDevtoolsPanel(props) {
115
120
  solidJs.createEffect(() => {
116
121
  devtools.setErrorTypes(props.errorTypes || []);
117
122
  });
123
+ solidJs.createEffect(() => {
124
+ devtools.setTheme(props.theme || "system");
125
+ });
118
126
  solidJs.onMount(() => {
119
127
  devtools.mount(ref);
120
128
  solidJs.onCleanup(() => devtools.unmount());
package/build/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as solid_js from 'solid-js';
2
2
  import { JSX } from 'solid-js';
3
- import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType } from '@tanstack/query-devtools';
3
+ import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
4
4
  import { QueryClient } from '@tanstack/solid-query';
5
5
 
6
6
  interface DevtoolsOptions {
@@ -40,6 +40,11 @@ interface DevtoolsOptions {
40
40
  * Set this to true to hide disabled queries from the devtools panel.
41
41
  */
42
42
  hideDisabledQueries?: boolean;
43
+ /**
44
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
45
+ * Defaults to 'system'.
46
+ */
47
+ theme?: Theme;
43
48
  }
44
49
  declare function SolidQueryDevtools$1(props: DevtoolsOptions): solid_js.JSX.Element;
45
50
 
@@ -75,6 +80,11 @@ interface DevtoolsPanelOptions {
75
80
  * Set this to true to hide disabled queries from the devtools panel.
76
81
  */
77
82
  hideDisabledQueries?: boolean;
83
+ /**
84
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
85
+ * Defaults to 'system'.
86
+ */
87
+ theme?: Theme;
78
88
  }
79
89
  declare function SolidQueryDevtoolsPanel$1(props: DevtoolsPanelOptions): JSX.Element;
80
90
 
package/build/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as solid_js from 'solid-js';
2
2
  import { JSX } from 'solid-js';
3
- import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType } from '@tanstack/query-devtools';
3
+ import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType, Theme } from '@tanstack/query-devtools';
4
4
  import { QueryClient } from '@tanstack/solid-query';
5
5
 
6
6
  interface DevtoolsOptions {
@@ -40,6 +40,11 @@ interface DevtoolsOptions {
40
40
  * Set this to true to hide disabled queries from the devtools panel.
41
41
  */
42
42
  hideDisabledQueries?: boolean;
43
+ /**
44
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
45
+ * Defaults to 'system'.
46
+ */
47
+ theme?: Theme;
43
48
  }
44
49
  declare function SolidQueryDevtools$1(props: DevtoolsOptions): solid_js.JSX.Element;
45
50
 
@@ -75,6 +80,11 @@ interface DevtoolsPanelOptions {
75
80
  * Set this to true to hide disabled queries from the devtools panel.
76
81
  */
77
82
  hideDisabledQueries?: boolean;
83
+ /**
84
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
85
+ * Defaults to 'system'.
86
+ */
87
+ theme?: Theme;
78
88
  }
79
89
  declare function SolidQueryDevtoolsPanel$1(props: DevtoolsPanelOptions): JSX.Element;
80
90
 
package/build/index.js CHANGED
@@ -18,10 +18,10 @@ function clientOnly(fn) {
18
18
  }
19
19
 
20
20
  // src/index.tsx
21
- var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/DFW22NEL.js')) : function() {
21
+ var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/BCD44V6M.js')) : function() {
22
22
  return null;
23
23
  };
24
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/QH7X6ZDM.js')) : function() {
24
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/VKJ7SILT.js')) : function() {
25
25
  return null;
26
26
  };
27
27
 
package/build/index.jsx CHANGED
@@ -30,10 +30,10 @@ function clientOnly(fn) {
30
30
  }
31
31
 
32
32
  // src/index.tsx
33
- var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/4LKOWRT2.jsx")) : function() {
33
+ var SolidQueryDevtools = isDev ? clientOnly(() => import("./devtools/32HRKFKI.jsx")) : function() {
34
34
  return null;
35
35
  };
36
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/YI6MKFAH.jsx")) : function() {
36
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import("./devtoolsPanel/NDFIDQLQ.jsx")) : function() {
37
37
  return null;
38
38
  };
39
39
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-query-devtools",
3
- "version": "5.90.3",
3
+ "version": "5.91.0",
4
4
  "description": "Developer tools to interact with and visualize the TanStack/solid-query Query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -44,18 +44,19 @@
44
44
  "!src/__tests__"
45
45
  ],
46
46
  "dependencies": {
47
- "@tanstack/query-devtools": "5.90.1"
47
+ "@tanstack/query-devtools": "5.91.0"
48
48
  },
49
49
  "devDependencies": {
50
+ "@solidjs/testing-library": "^0.8.10",
50
51
  "npm-run-all2": "^5.0.0",
51
52
  "solid-js": "^1.9.7",
52
53
  "tsup-preset-solid": "^2.2.0",
53
54
  "vite-plugin-solid": "^2.11.6",
54
- "@tanstack/solid-query": "5.90.3"
55
+ "@tanstack/solid-query": "5.90.13"
55
56
  },
56
57
  "peerDependencies": {
57
58
  "solid-js": "^1.6.0",
58
- "@tanstack/solid-query": "^5.90.3"
59
+ "@tanstack/solid-query": "^5.90.13"
59
60
  },
60
61
  "scripts": {
61
62
  "clean": "premove ./build ./coverage ./dist-ts",
@@ -71,6 +72,8 @@
71
72
  "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build",
72
73
  "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build",
73
74
  "test:build": "publint --strict && attw --pack",
75
+ "test:lib": "vitest --retry=3",
76
+ "test:lib:dev": "pnpm run test:lib --watch",
74
77
  "build": "tsup --tsconfig tsconfig.prod.json",
75
78
  "build:dev": "tsup --watch"
76
79
  }
package/src/devtools.tsx CHANGED
@@ -5,6 +5,7 @@ import type {
5
5
  DevtoolsButtonPosition,
6
6
  DevtoolsErrorType,
7
7
  DevtoolsPosition,
8
+ Theme,
8
9
  } from '@tanstack/query-devtools'
9
10
  import type { QueryClient } from '@tanstack/solid-query'
10
11
 
@@ -45,11 +46,16 @@ interface DevtoolsOptions {
45
46
  * Set this to true to hide disabled queries from the devtools panel.
46
47
  */
47
48
  hideDisabledQueries?: boolean
49
+ /**
50
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
51
+ * Defaults to 'system'.
52
+ */
53
+ theme?: Theme
48
54
  }
49
55
 
50
56
  export default function SolidQueryDevtools(props: DevtoolsOptions) {
51
- const queryClient = useQueryClient()
52
- const client = createMemo(() => props.client || queryClient)
57
+ const queryClient = useQueryClient(props.client)
58
+ const client = createMemo(() => queryClient)
53
59
  let ref!: HTMLDivElement
54
60
  const devtools = new TanstackQueryDevtools({
55
61
  client: client(),
@@ -63,6 +69,7 @@ export default function SolidQueryDevtools(props: DevtoolsOptions) {
63
69
  styleNonce: props.styleNonce,
64
70
  shadowDOMTarget: props.shadowDOMTarget,
65
71
  hideDisabledQueries: props.hideDisabledQueries,
72
+ theme: props.theme,
66
73
  })
67
74
 
68
75
  createEffect(() => {
@@ -91,6 +98,10 @@ export default function SolidQueryDevtools(props: DevtoolsOptions) {
91
98
  devtools.setErrorTypes(props.errorTypes || [])
92
99
  })
93
100
 
101
+ createEffect(() => {
102
+ devtools.setTheme(props.theme || 'system')
103
+ })
104
+
94
105
  onMount(() => {
95
106
  devtools.mount(ref)
96
107
  onCleanup(() => devtools.unmount())
@@ -1,7 +1,7 @@
1
1
  import { createEffect, createMemo, onCleanup, onMount } from 'solid-js'
2
2
  import { onlineManager, useQueryClient } from '@tanstack/solid-query'
3
3
  import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'
4
- import type { DevtoolsErrorType } from '@tanstack/query-devtools'
4
+ import type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'
5
5
  import type { QueryClient } from '@tanstack/solid-query'
6
6
  import type { JSX } from 'solid-js'
7
7
 
@@ -39,11 +39,16 @@ export interface DevtoolsPanelOptions {
39
39
  * Set this to true to hide disabled queries from the devtools panel.
40
40
  */
41
41
  hideDisabledQueries?: boolean
42
+ /**
43
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
44
+ * Defaults to 'system'.
45
+ */
46
+ theme?: Theme
42
47
  }
43
48
 
44
49
  export default function SolidQueryDevtoolsPanel(props: DevtoolsPanelOptions) {
45
- const queryClient = useQueryClient()
46
- const client = createMemo(() => props.client || queryClient)
50
+ const queryClient = useQueryClient(props.client)
51
+ const client = createMemo(() => queryClient)
47
52
  let ref!: HTMLDivElement
48
53
  const { errorTypes, styleNonce, shadowDOMTarget, hideDisabledQueries } = props
49
54
  const devtools = new TanstackQueryDevtoolsPanel({
@@ -59,6 +64,7 @@ export default function SolidQueryDevtoolsPanel(props: DevtoolsPanelOptions) {
59
64
  shadowDOMTarget,
60
65
  onClose: props.onClose,
61
66
  hideDisabledQueries,
67
+ theme: props.theme,
62
68
  })
63
69
  createEffect(() => {
64
70
  devtools.setClient(client())
@@ -71,6 +77,10 @@ export default function SolidQueryDevtoolsPanel(props: DevtoolsPanelOptions) {
71
77
  devtools.setErrorTypes(props.errorTypes || [])
72
78
  })
73
79
 
80
+ createEffect(() => {
81
+ devtools.setTheme(props.theme || 'system')
82
+ })
83
+
74
84
  onMount(() => {
75
85
  devtools.mount(ref)
76
86
  onCleanup(() => devtools.unmount())