@tanstack/solid-query-devtools 5.91.3 → 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.
- package/build/_tsup-dts-rollup.d.cts +119 -0
- package/build/_tsup-dts-rollup.d.ts +119 -0
- package/build/chunk/KLS34EMT.js +1065 -0
- package/build/chunk/RDKFYAW3.js +1034 -0
- package/build/dev.cjs +1124 -43
- package/build/dev.d.cts +3 -0
- package/build/dev.d.ts +3 -0
- package/build/dev.js +10 -9
- package/build/dev.jsx +1033 -16
- package/build/devtools/{BCD44V6M.js → CHPGNEUY.js} +17 -20
- package/build/devtools/{32HRKFKI.jsx → MU7AYS7J.jsx} +40 -24
- package/build/devtools/OWDQYIA3.js +59 -0
- package/build/devtoolsPanel/{VKJ7SILT.js → CQ4HXSZG.js} +20 -20
- package/build/devtoolsPanel/LLRYE7CA.js +62 -0
- package/build/devtoolsPanel/{NDFIDQLQ.jsx → NLCUKFXJ.jsx} +27 -15
- package/build/index.cjs +1093 -43
- package/build/index.d.cts +3 -94
- package/build/index.d.ts +3 -94
- package/build/index.js +10 -9
- package/build/index.jsx +1004 -16
- package/package.json +13 -10
- package/src/clientOnly.tsx +9 -7
- package/src/devtools.tsx +42 -26
- package/src/devtoolsPanel.tsx +26 -14
- package/src/index.tsx +1 -1
package/build/dev.d.cts
ADDED
package/build/dev.d.ts
ADDED
package/build/dev.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { isDev, isServer } from '
|
|
2
|
-
import { createSignal,
|
|
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
|
|
13
|
-
if ((Comp = comp()) && !sharedConfig.
|
|
14
|
-
const [mounted, setMounted] = createSignal(!sharedConfig.
|
|
15
|
-
|
|
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/
|
|
22
|
+
var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/OWDQYIA3.js')) : function() {
|
|
22
23
|
return null;
|
|
23
24
|
};
|
|
24
|
-
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/
|
|
25
|
+
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/CQ4HXSZG.js')) : function() {
|
|
25
26
|
return null;
|
|
26
27
|
};
|
|
27
28
|
|