@tanstack/solid-query-devtools 5.91.2 → 6.0.0-alpha.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.
@@ -0,0 +1,3 @@
1
+ export { SolidQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { SolidQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
3
+ export { DevtoolsPanelOptions_alias_1 as DevtoolsPanelOptions } from './_tsup-dts-rollup.cjs';
package/build/dev.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export { SolidQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { SolidQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
3
+ export { DevtoolsPanelOptions_alias_1 as DevtoolsPanelOptions } from './_tsup-dts-rollup.js';
package/build/dev.js CHANGED
@@ -1,7 +1,6 @@
1
- import { isDev, isServer } from 'solid-js/web';
2
- import { createSignal, splitProps, sharedConfig, onMount, createMemo, untrack } from 'solid-js';
1
+ import { isDev, isServer } from './chunk/KLS34EMT.js';
2
+ import { createSignal, omit, sharedConfig, onSettled, createMemo, untrack } from 'solid-js';
3
3
 
4
- // src/index.tsx
5
4
  function clientOnly(fn) {
6
5
  if (isServer) return (props) => props.fallback;
7
6
  const [comp, setComp] = createSignal();
@@ -9,19 +8,21 @@ function clientOnly(fn) {
9
8
  return (props) => {
10
9
  let Comp;
11
10
  let m;
12
- const [, rest] = splitProps(props, ["fallback"]);
13
- if ((Comp = comp()) && !sharedConfig.context) return Comp(rest);
14
- const [mounted, setMounted] = createSignal(!sharedConfig.context);
15
- onMount(() => setMounted(true));
11
+ const rest = omit(props, "fallback");
12
+ if ((Comp = comp()) && !sharedConfig.hydrating) return Comp(rest);
13
+ const [mounted, setMounted] = createSignal(!sharedConfig.hydrating);
14
+ onSettled(() => {
15
+ setMounted(true);
16
+ });
16
17
  return createMemo(() => (Comp = comp(), m = mounted(), untrack(() => Comp && m ? Comp(rest) : props.fallback)));
17
18
  };
18
19
  }
19
20
 
20
21
  // src/index.tsx
21
- var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/BCD44V6M.js')) : function() {
22
+ var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/OWDQYIA3.js')) : function() {
22
23
  return null;
23
24
  };
24
- var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/VKJ7SILT.js')) : function() {
25
+ var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/CQ4HXSZG.js')) : function() {
25
26
  return null;
26
27
  };
27
28