@tanstack/solid-query-devtools 6.0.0-rc.3 → 6.0.0-rc.5
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/chunk/{6YEK5RSE.js → L2WCKKHK.js} +7 -4
- package/build/chunk/{LZBCL5FW.js → OQETK3NG.js} +34 -4
- package/build/dev.cjs +49 -16
- package/build/dev.js +6 -6
- package/build/dev.jsx +6 -5
- package/build/devtools/{NS4HL5WJ.js → V6WOBMVN.js} +1 -1
- package/build/devtools/{UQ6OWRDT.js → WQPACNKE.js} +1 -1
- package/build/devtoolsPanel/{JAI45AU2.js → 6IZHMMFI.js} +1 -1
- package/build/devtoolsPanel/{IQ6EXVZB.js → HZIEZL6U.js} +1 -1
- package/build/index.cjs +9 -6
- package/build/index.js +6 -6
- package/build/index.jsx +6 -5
- package/package.json +12 -9
- package/src/clientOnly.tsx +3 -3
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { createRenderEffect, untrack, runWithOwner
|
|
1
|
+
import { createRenderEffect, untrack, runWithOwner } from 'solid-js';
|
|
2
|
+
import { sharedConfig } from 'solid-js/internal';
|
|
2
3
|
|
|
3
|
-
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.
|
|
4
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.13_solid-js@2.0.0-rc.13/node_modules/@solidjs/web/dist/web.js
|
|
4
5
|
var transparentOptions = {
|
|
5
6
|
transparent: true,
|
|
6
7
|
sync: true
|
|
7
8
|
};
|
|
8
9
|
function effect(fn, effectFn, options) {
|
|
9
|
-
|
|
10
|
+
const nodeOptions = options ? {
|
|
10
11
|
sync: true,
|
|
11
12
|
...options,
|
|
12
13
|
transparent: !options.scope
|
|
13
|
-
} : transparentOptions
|
|
14
|
+
} : transparentOptions;
|
|
15
|
+
createRenderEffect(fn, effectFn, nodeOptions);
|
|
14
16
|
}
|
|
15
17
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
16
18
|
function create(html, bypassGuard, flag) {
|
|
@@ -76,6 +78,7 @@ function ref(fn, element) {
|
|
|
76
78
|
}
|
|
77
79
|
function isHydrating(node) {
|
|
78
80
|
if (!sharedConfig.hydrating) return false;
|
|
81
|
+
if (sharedConfig.isClaiming && !sharedConfig.isClaiming()) return false;
|
|
79
82
|
if (!node || node.isConnected) return true;
|
|
80
83
|
const roots = sharedConfig.claimRoots;
|
|
81
84
|
if (roots) {
|
|
@@ -1,20 +1,47 @@
|
|
|
1
|
-
import { createRenderEffect, untrack, runWithOwner
|
|
1
|
+
import { createRenderEffect, getOwner, untrack, runWithOwner } from 'solid-js';
|
|
2
|
+
import { sharedConfig } from 'solid-js/internal';
|
|
2
3
|
|
|
3
|
-
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.
|
|
4
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.13_solid-js@2.0.0-rc.13/node_modules/@solidjs/web/dist/web.dev.js
|
|
4
5
|
var transparentOptions = {
|
|
5
6
|
transparent: true,
|
|
6
7
|
sync: true
|
|
7
8
|
};
|
|
9
|
+
var spreadName;
|
|
10
|
+
var bindingEffect = null;
|
|
11
|
+
function tagElement(node) {
|
|
12
|
+
if (bindingEffect !== null && bindingEffect._devElement === void 0) bindingEffect._devElement = node;
|
|
13
|
+
}
|
|
8
14
|
function effect(fn, effectFn, options) {
|
|
9
|
-
|
|
15
|
+
if (spreadName !== void 0 && (options === void 0 || options.name === void 0)) options = {
|
|
16
|
+
...options,
|
|
17
|
+
name: spreadName + ".spread"
|
|
18
|
+
};
|
|
19
|
+
const nodeOptions = options ? {
|
|
10
20
|
sync: true,
|
|
11
21
|
...options,
|
|
12
22
|
transparent: !options.scope
|
|
13
|
-
} : transparentOptions
|
|
23
|
+
} : transparentOptions;
|
|
24
|
+
{
|
|
25
|
+
let node = null;
|
|
26
|
+
createRenderEffect((prev) => {
|
|
27
|
+
node = getOwner();
|
|
28
|
+
return fn(prev);
|
|
29
|
+
}, (value, prev) => {
|
|
30
|
+
const outer = bindingEffect;
|
|
31
|
+
bindingEffect = node;
|
|
32
|
+
try {
|
|
33
|
+
return effectFn(value, prev);
|
|
34
|
+
} finally {
|
|
35
|
+
bindingEffect = outer;
|
|
36
|
+
}
|
|
37
|
+
}, nodeOptions);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
14
40
|
}
|
|
15
41
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
16
42
|
function create(html, bypassGuard, flag) {
|
|
17
43
|
if (isHydrating() && !bypassGuard) throw new Error("Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration.");
|
|
44
|
+
if (/^<(html|head|body)[\s>]/i.test(html)) throw new Error("Document shell templates (<html>, <head>, <body>) cannot be client-created: a <template> parse strips those tags. Render this component through hydrate(), where the document shell already exists.");
|
|
18
45
|
const t = document.createElement("template");
|
|
19
46
|
t.innerHTML = html;
|
|
20
47
|
return flag === 2 ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
@@ -26,10 +53,12 @@ function template(html, flag) {
|
|
|
26
53
|
return fn;
|
|
27
54
|
}
|
|
28
55
|
function setAttribute(node, name, value) {
|
|
56
|
+
tagElement(node);
|
|
29
57
|
if (isHydrating(node)) return;
|
|
30
58
|
node.removeAttribute(name);
|
|
31
59
|
}
|
|
32
60
|
function style(node, value, prev) {
|
|
61
|
+
tagElement(node);
|
|
33
62
|
if (isHydrating(node)) return;
|
|
34
63
|
if (!value) {
|
|
35
64
|
if (prev || node._$styles) {
|
|
@@ -78,6 +107,7 @@ function ref(fn, element) {
|
|
|
78
107
|
}
|
|
79
108
|
function isHydrating(node) {
|
|
80
109
|
if (!sharedConfig.hydrating) return false;
|
|
110
|
+
if (sharedConfig.isClaiming && !sharedConfig.isClaiming()) return false;
|
|
81
111
|
if (!node || node.isConnected) return true;
|
|
82
112
|
const roots = sharedConfig.claimRoots;
|
|
83
113
|
if (roots) {
|
package/build/dev.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var solidJs = require('solid-js');
|
|
4
|
+
var internal = require('solid-js/internal');
|
|
4
5
|
var solidQuery = require('@tanstack/solid-query');
|
|
5
6
|
var queryDevtools = require('@tanstack/query-devtools');
|
|
6
7
|
|
|
@@ -13,11 +14,39 @@ var __export = (target, all) => {
|
|
|
13
14
|
for (var name in all)
|
|
14
15
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
16
|
};
|
|
17
|
+
function tagElement(node) {
|
|
18
|
+
if (bindingEffect !== null && bindingEffect._devElement === void 0) bindingEffect._devElement = node;
|
|
19
|
+
}
|
|
16
20
|
function effect(fn, effectFn, options) {
|
|
17
|
-
|
|
21
|
+
if (spreadName !== void 0 && (options === void 0 || options.name === void 0)) options = {
|
|
22
|
+
...options,
|
|
23
|
+
name: spreadName + ".spread"
|
|
24
|
+
};
|
|
25
|
+
const nodeOptions = options ? {
|
|
26
|
+
sync: true,
|
|
27
|
+
...options,
|
|
28
|
+
transparent: !options.scope
|
|
29
|
+
} : transparentOptions;
|
|
30
|
+
{
|
|
31
|
+
let node = null;
|
|
32
|
+
solidJs.createRenderEffect((prev) => {
|
|
33
|
+
node = solidJs.getOwner();
|
|
34
|
+
return fn(prev);
|
|
35
|
+
}, (value, prev) => {
|
|
36
|
+
const outer = bindingEffect;
|
|
37
|
+
bindingEffect = node;
|
|
38
|
+
try {
|
|
39
|
+
return effectFn(value, prev);
|
|
40
|
+
} finally {
|
|
41
|
+
bindingEffect = outer;
|
|
42
|
+
}
|
|
43
|
+
}, nodeOptions);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
18
46
|
}
|
|
19
47
|
function create(html, bypassGuard, flag) {
|
|
20
48
|
if (isHydrating() && !bypassGuard) throw new Error("Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration.");
|
|
49
|
+
if (/^<(html|head|body)[\s>]/i.test(html)) throw new Error("Document shell templates (<html>, <head>, <body>) cannot be client-created: a <template> parse strips those tags. Render this component through hydrate(), where the document shell already exists.");
|
|
21
50
|
const t = document.createElement("template");
|
|
22
51
|
t.innerHTML = html;
|
|
23
52
|
return flag === 2 ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
@@ -29,10 +58,12 @@ function template(html, flag) {
|
|
|
29
58
|
return fn;
|
|
30
59
|
}
|
|
31
60
|
function setAttribute(node, name, value) {
|
|
61
|
+
tagElement(node);
|
|
32
62
|
if (isHydrating(node)) return;
|
|
33
63
|
node.removeAttribute(name);
|
|
34
64
|
}
|
|
35
65
|
function style(node, value, prev) {
|
|
66
|
+
tagElement(node);
|
|
36
67
|
if (isHydrating(node)) return;
|
|
37
68
|
if (!value) {
|
|
38
69
|
if (prev || node._$styles) {
|
|
@@ -80,9 +111,10 @@ function ref(fn, element) {
|
|
|
80
111
|
solidJs.runWithOwner(null, () => applyRef(resolved, element));
|
|
81
112
|
}
|
|
82
113
|
function isHydrating(node) {
|
|
83
|
-
if (!
|
|
114
|
+
if (!internal.sharedConfig.hydrating) return false;
|
|
115
|
+
if (internal.sharedConfig.isClaiming && !internal.sharedConfig.isClaiming()) return false;
|
|
84
116
|
if (!node || node.isConnected) return true;
|
|
85
|
-
const roots =
|
|
117
|
+
const roots = internal.sharedConfig.claimRoots;
|
|
86
118
|
if (roots) {
|
|
87
119
|
for (let i = 0; i < roots.length; i++) {
|
|
88
120
|
if (roots[i].contains(node)) return true;
|
|
@@ -90,13 +122,14 @@ function isHydrating(node) {
|
|
|
90
122
|
}
|
|
91
123
|
return false;
|
|
92
124
|
}
|
|
93
|
-
var transparentOptions, hasOwn, isServer, isDev;
|
|
94
|
-
var
|
|
95
|
-
"../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.
|
|
125
|
+
var transparentOptions, spreadName, bindingEffect, hasOwn, isServer, isDev;
|
|
126
|
+
var init_web_dev = __esm({
|
|
127
|
+
"../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.13_solid-js@2.0.0-rc.13/node_modules/@solidjs/web/dist/web.dev.js"() {
|
|
96
128
|
transparentOptions = {
|
|
97
129
|
transparent: true,
|
|
98
130
|
sync: true
|
|
99
131
|
};
|
|
132
|
+
bindingEffect = null;
|
|
100
133
|
hasOwn = Object.prototype.hasOwnProperty;
|
|
101
134
|
isServer = false;
|
|
102
135
|
isDev = true;
|
|
@@ -171,8 +204,8 @@ function SolidQueryDevtools(props) {
|
|
|
171
204
|
var _tmpl$;
|
|
172
205
|
var init_devtools = __esm({
|
|
173
206
|
"src/devtools.tsx"() {
|
|
174
|
-
|
|
175
|
-
|
|
207
|
+
init_web_dev();
|
|
208
|
+
init_web_dev();
|
|
176
209
|
_tmpl$ = /* @__PURE__ */ template(`<div class=tsqd-parent-container>`);
|
|
177
210
|
}
|
|
178
211
|
});
|
|
@@ -248,19 +281,19 @@ function SolidQueryDevtoolsPanel(props) {
|
|
|
248
281
|
var _tmpl$2;
|
|
249
282
|
var init_devtoolsPanel = __esm({
|
|
250
283
|
"src/devtoolsPanel.tsx"() {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
284
|
+
init_web_dev();
|
|
285
|
+
init_web_dev();
|
|
286
|
+
init_web_dev();
|
|
287
|
+
init_web_dev();
|
|
255
288
|
_tmpl$2 = /* @__PURE__ */ template(`<div class=tsqd-parent-container style=height:500px>`);
|
|
256
289
|
}
|
|
257
290
|
});
|
|
258
291
|
|
|
259
292
|
// src/index.tsx
|
|
260
|
-
|
|
293
|
+
init_web_dev();
|
|
261
294
|
|
|
262
295
|
// src/clientOnly.tsx
|
|
263
|
-
|
|
296
|
+
init_web_dev();
|
|
264
297
|
function clientOnly(fn) {
|
|
265
298
|
if (isServer) return (props) => props.fallback;
|
|
266
299
|
const [comp, setComp] = solidJs.createSignal();
|
|
@@ -269,8 +302,8 @@ function clientOnly(fn) {
|
|
|
269
302
|
let Comp;
|
|
270
303
|
let m;
|
|
271
304
|
const rest = solidJs.omit(props, "fallback");
|
|
272
|
-
if ((Comp = comp()) && !solidJs.
|
|
273
|
-
const [mounted, setMounted] = solidJs.createSignal(!solidJs.
|
|
305
|
+
if ((Comp = comp()) && !solidJs.isHydrating()) return Comp(rest);
|
|
306
|
+
const [mounted, setMounted] = solidJs.createSignal(!solidJs.isHydrating());
|
|
274
307
|
solidJs.onSettled(() => {
|
|
275
308
|
setMounted(true);
|
|
276
309
|
});
|
package/build/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isDev, isServer } from './chunk/
|
|
2
|
-
import { createSignal, omit,
|
|
1
|
+
import { isDev, isServer } from './chunk/OQETK3NG.js';
|
|
2
|
+
import { createSignal, omit, isHydrating, onSettled, createMemo, untrack } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
function clientOnly(fn) {
|
|
5
5
|
if (isServer) return (props) => props.fallback;
|
|
@@ -9,8 +9,8 @@ function clientOnly(fn) {
|
|
|
9
9
|
let Comp;
|
|
10
10
|
let m;
|
|
11
11
|
const rest = omit(props, "fallback");
|
|
12
|
-
if ((Comp = comp()) && !
|
|
13
|
-
const [mounted, setMounted] = createSignal(!
|
|
12
|
+
if ((Comp = comp()) && !isHydrating()) return Comp(rest);
|
|
13
|
+
const [mounted, setMounted] = createSignal(!isHydrating());
|
|
14
14
|
onSettled(() => {
|
|
15
15
|
setMounted(true);
|
|
16
16
|
});
|
|
@@ -19,10 +19,10 @@ function clientOnly(fn) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// src/index.tsx
|
|
22
|
-
var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/
|
|
22
|
+
var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/V6WOBMVN.js')) : function() {
|
|
23
23
|
return null;
|
|
24
24
|
};
|
|
25
|
-
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/
|
|
25
|
+
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/6IZHMMFI.js')) : function() {
|
|
26
26
|
return null;
|
|
27
27
|
};
|
|
28
28
|
|
package/build/dev.jsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.
|
|
2
|
-
import { createRenderEffect, createMemo,
|
|
1
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.13_solid-js@2.0.0-rc.13/node_modules/@solidjs/web/dist/web.dev.js
|
|
2
|
+
import { createRenderEffect, getOwner, createMemo, OBSERVE, DEV, enableHydration, $PROXY, untrack, runWithOwner, resetErrorHalt, enforceLoadingBoundary, createRoot, ROOT_ERROR_HOOK, flatten, flush, createComponent, omit, createOwner, createSignal, onCleanup, createEffect } from "solid-js";
|
|
3
3
|
import { Errored, For, Hydration, Loading, Match, NoHydration, Repeat, Reveal, Show, Switch, createComponent as createComponent2, getOwner as getOwner2, merge, untrack as untrack2 } from "solid-js";
|
|
4
|
+
import { sharedConfig, sourceKeys, SOURCE_PROXY, hasStaticKeys, resolvedTable, viewOf, OmitView, sourceHas, SOURCE_OMIT, sourceGet, SOURCE_MEMO, SOURCE_PLAIN, $DEVCOMP } from "solid-js/internal";
|
|
4
5
|
var FLASH_COOKIE = "flash";
|
|
5
6
|
var FLASH_MATCHER = new RegExp(`(?:^|;\\s*)${FLASH_COOKIE}=([^;]+)`);
|
|
6
7
|
var isServer = false;
|
|
@@ -10,9 +11,9 @@ var isDev = true;
|
|
|
10
11
|
import {
|
|
11
12
|
createMemo as createMemo2,
|
|
12
13
|
createSignal as createSignal2,
|
|
14
|
+
isHydrating,
|
|
13
15
|
omit as omit2,
|
|
14
16
|
onSettled,
|
|
15
|
-
sharedConfig as sharedConfig2,
|
|
16
17
|
untrack as untrack3
|
|
17
18
|
} from "solid-js";
|
|
18
19
|
function clientOnly(fn) {
|
|
@@ -24,8 +25,8 @@ function clientOnly(fn) {
|
|
|
24
25
|
let Comp;
|
|
25
26
|
let m;
|
|
26
27
|
const rest = omit2(props, "fallback");
|
|
27
|
-
if ((Comp = comp()) && !
|
|
28
|
-
const [mounted, setMounted] = createSignal2(!
|
|
28
|
+
if ((Comp = comp()) && !isHydrating()) return Comp(rest);
|
|
29
|
+
const [mounted, setMounted] = createSignal2(!isHydrating());
|
|
29
30
|
onSettled(() => {
|
|
30
31
|
setMounted(true);
|
|
31
32
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, template } from '../chunk/
|
|
1
|
+
import { ref, template } from '../chunk/OQETK3NG.js';
|
|
2
2
|
import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
|
|
3
3
|
import { useQueryClient, onlineManager } from '@tanstack/solid-query';
|
|
4
4
|
import { TanstackQueryDevtools } from '@tanstack/query-devtools';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, template } from '../chunk/
|
|
1
|
+
import { ref, template } from '../chunk/L2WCKKHK.js';
|
|
2
2
|
import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
|
|
3
3
|
import { useQueryClient, onlineManager } from '@tanstack/solid-query';
|
|
4
4
|
import { TanstackQueryDevtools } from '@tanstack/query-devtools';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, effect, style, template } from '../chunk/
|
|
1
|
+
import { ref, effect, style, template } from '../chunk/OQETK3NG.js';
|
|
2
2
|
import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
|
|
3
3
|
import { useQueryClient, onlineManager } from '@tanstack/solid-query';
|
|
4
4
|
import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, effect, style, template } from '../chunk/
|
|
1
|
+
import { ref, effect, style, template } from '../chunk/L2WCKKHK.js';
|
|
2
2
|
import { createMemo, createEffect, onSettled, runWithOwner } from 'solid-js';
|
|
3
3
|
import { useQueryClient, onlineManager } from '@tanstack/solid-query';
|
|
4
4
|
import { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools';
|
package/build/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var solidJs = require('solid-js');
|
|
4
|
+
var internal = require('solid-js/internal');
|
|
4
5
|
var solidQuery = require('@tanstack/solid-query');
|
|
5
6
|
var queryDevtools = require('@tanstack/query-devtools');
|
|
6
7
|
|
|
@@ -14,7 +15,8 @@ var __export = (target, all) => {
|
|
|
14
15
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
16
|
};
|
|
16
17
|
function effect(fn, effectFn, options) {
|
|
17
|
-
|
|
18
|
+
const nodeOptions = transparentOptions;
|
|
19
|
+
solidJs.createRenderEffect(fn, effectFn, nodeOptions);
|
|
18
20
|
}
|
|
19
21
|
function create(html, bypassGuard, flag) {
|
|
20
22
|
const t = document.createElement("template");
|
|
@@ -78,9 +80,10 @@ function ref(fn, element) {
|
|
|
78
80
|
solidJs.runWithOwner(null, () => applyRef(resolved, element));
|
|
79
81
|
}
|
|
80
82
|
function isHydrating(node) {
|
|
81
|
-
if (!
|
|
83
|
+
if (!internal.sharedConfig.hydrating) return false;
|
|
84
|
+
if (internal.sharedConfig.isClaiming && !internal.sharedConfig.isClaiming()) return false;
|
|
82
85
|
if (!node || node.isConnected) return true;
|
|
83
|
-
const roots =
|
|
86
|
+
const roots = internal.sharedConfig.claimRoots;
|
|
84
87
|
if (roots) {
|
|
85
88
|
for (let i = 0; i < roots.length; i++) {
|
|
86
89
|
if (roots[i].contains(node)) return true;
|
|
@@ -90,7 +93,7 @@ function isHydrating(node) {
|
|
|
90
93
|
}
|
|
91
94
|
var transparentOptions, hasOwn, isServer, isDev;
|
|
92
95
|
var init_web = __esm({
|
|
93
|
-
"../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.
|
|
96
|
+
"../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.13_solid-js@2.0.0-rc.13/node_modules/@solidjs/web/dist/web.js"() {
|
|
94
97
|
transparentOptions = {
|
|
95
98
|
transparent: true,
|
|
96
99
|
sync: true
|
|
@@ -267,8 +270,8 @@ function clientOnly(fn) {
|
|
|
267
270
|
let Comp;
|
|
268
271
|
let m;
|
|
269
272
|
const rest = solidJs.omit(props, "fallback");
|
|
270
|
-
if ((Comp = comp()) && !solidJs.
|
|
271
|
-
const [mounted, setMounted] = solidJs.createSignal(!solidJs.
|
|
273
|
+
if ((Comp = comp()) && !solidJs.isHydrating()) return Comp(rest);
|
|
274
|
+
const [mounted, setMounted] = solidJs.createSignal(!solidJs.isHydrating());
|
|
272
275
|
solidJs.onSettled(() => {
|
|
273
276
|
setMounted(true);
|
|
274
277
|
});
|
package/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isDev, isServer } from './chunk/
|
|
2
|
-
import { createSignal, omit,
|
|
1
|
+
import { isDev, isServer } from './chunk/L2WCKKHK.js';
|
|
2
|
+
import { createSignal, omit, isHydrating, onSettled, createMemo, untrack } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
function clientOnly(fn) {
|
|
5
5
|
if (isServer) return (props) => props.fallback;
|
|
@@ -9,8 +9,8 @@ function clientOnly(fn) {
|
|
|
9
9
|
let Comp;
|
|
10
10
|
let m;
|
|
11
11
|
const rest = omit(props, "fallback");
|
|
12
|
-
if ((Comp = comp()) && !
|
|
13
|
-
const [mounted, setMounted] = createSignal(!
|
|
12
|
+
if ((Comp = comp()) && !isHydrating()) return Comp(rest);
|
|
13
|
+
const [mounted, setMounted] = createSignal(!isHydrating());
|
|
14
14
|
onSettled(() => {
|
|
15
15
|
setMounted(true);
|
|
16
16
|
});
|
|
@@ -19,10 +19,10 @@ function clientOnly(fn) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// src/index.tsx
|
|
22
|
-
var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/
|
|
22
|
+
var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/WQPACNKE.js')) : function() {
|
|
23
23
|
return null;
|
|
24
24
|
};
|
|
25
|
-
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/
|
|
25
|
+
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/HZIEZL6U.js')) : function() {
|
|
26
26
|
return null;
|
|
27
27
|
};
|
|
28
28
|
|
package/build/index.jsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.
|
|
2
|
-
import { createRenderEffect, createMemo,
|
|
1
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-rc.13_solid-js@2.0.0-rc.13/node_modules/@solidjs/web/dist/web.js
|
|
2
|
+
import { createRenderEffect, createMemo, enableHydration, $PROXY, untrack, runWithOwner, createRoot, getOwner, ROOT_ERROR_HOOK, flatten, flush, createComponent, omit, createOwner, createSignal, onCleanup, createEffect } from "solid-js";
|
|
3
3
|
import { Errored, For, Hydration, Loading, Match, NoHydration, Repeat, Reveal, Show, Switch, createComponent as createComponent2, getOwner as getOwner2, merge, untrack as untrack2 } from "solid-js";
|
|
4
|
+
import { sharedConfig, sourceKeys, SOURCE_PROXY, hasStaticKeys, resolvedTable, viewOf, OmitView, sourceHas, SOURCE_OMIT, sourceGet, SOURCE_MEMO, SOURCE_PLAIN } from "solid-js/internal";
|
|
4
5
|
var FLASH_COOKIE = "flash";
|
|
5
6
|
var FLASH_MATCHER = new RegExp(`(?:^|;\\s*)${FLASH_COOKIE}=([^;]+)`);
|
|
6
7
|
var isServer = false;
|
|
@@ -10,9 +11,9 @@ var isDev = false;
|
|
|
10
11
|
import {
|
|
11
12
|
createMemo as createMemo2,
|
|
12
13
|
createSignal as createSignal2,
|
|
14
|
+
isHydrating,
|
|
13
15
|
omit as omit2,
|
|
14
16
|
onSettled,
|
|
15
|
-
sharedConfig as sharedConfig2,
|
|
16
17
|
untrack as untrack3
|
|
17
18
|
} from "solid-js";
|
|
18
19
|
function clientOnly(fn) {
|
|
@@ -24,8 +25,8 @@ function clientOnly(fn) {
|
|
|
24
25
|
let Comp;
|
|
25
26
|
let m;
|
|
26
27
|
const rest = omit2(props, "fallback");
|
|
27
|
-
if ((Comp = comp()) && !
|
|
28
|
-
const [mounted, setMounted] = createSignal2(!
|
|
28
|
+
if ((Comp = comp()) && !isHydrating()) return Comp(rest);
|
|
29
|
+
const [mounted, setMounted] = createSignal2(!isHydrating());
|
|
29
30
|
onSettled(() => {
|
|
30
31
|
setMounted(true);
|
|
31
32
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-query-devtools",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.5",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/solid-query Query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,19 +49,22 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/core": "^7.28.0",
|
|
51
51
|
"@babel/preset-typescript": "^7.18.6",
|
|
52
|
-
"@solidjs/
|
|
52
|
+
"@solidjs/babel-plugin": "^2.0.0-rc.13",
|
|
53
|
+
"@solidjs/signals": "^2.0.0-rc.13",
|
|
53
54
|
"@solidjs/testing-library": "^0.8.10",
|
|
54
|
-
"@solidjs/vite-plugin": "^3.0.0-next.
|
|
55
|
-
"@solidjs/web": "^2.0.0-rc.
|
|
56
|
-
"
|
|
55
|
+
"@solidjs/vite-plugin": "^3.0.0-next.46",
|
|
56
|
+
"@solidjs/web": "^2.0.0-rc.13",
|
|
57
|
+
"@vitest/coverage-istanbul": "4.0.6",
|
|
57
58
|
"npm-run-all2": "^5.0.0",
|
|
58
|
-
"solid-js": "^2.0.0-rc.
|
|
59
|
+
"solid-js": "^2.0.0-rc.13",
|
|
59
60
|
"tsup-preset-solid": "^2.2.0",
|
|
60
|
-
"
|
|
61
|
+
"vite": "^8.3.0",
|
|
62
|
+
"vitest": "^4.0.18",
|
|
63
|
+
"@tanstack/solid-query": "6.0.0-rc.5"
|
|
61
64
|
},
|
|
62
65
|
"peerDependencies": {
|
|
63
|
-
"solid-js": ">=2.0.0-
|
|
64
|
-
"@tanstack/solid-query": "^6.0.0-rc.
|
|
66
|
+
"solid-js": ">=2.0.0-rc.13 <3.0.0",
|
|
67
|
+
"@tanstack/solid-query": "^6.0.0-rc.5"
|
|
65
68
|
},
|
|
66
69
|
"scripts": {
|
|
67
70
|
"clean": "premove ./build ./coverage ./dist-ts",
|
package/src/clientOnly.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMemo,
|
|
3
3
|
createSignal,
|
|
4
|
+
isHydrating,
|
|
4
5
|
omit,
|
|
5
6
|
onSettled,
|
|
6
|
-
sharedConfig,
|
|
7
7
|
untrack,
|
|
8
8
|
} from 'solid-js'
|
|
9
9
|
import { isServer } from '@solidjs/web'
|
|
@@ -30,8 +30,8 @@ export default function clientOnly<T extends Component<any>>(
|
|
|
30
30
|
let Comp: T | undefined
|
|
31
31
|
let m: boolean
|
|
32
32
|
const rest = omit(props, 'fallback')
|
|
33
|
-
if ((Comp = comp()) && !
|
|
34
|
-
const [mounted, setMounted] = createSignal(!
|
|
33
|
+
if ((Comp = comp()) && !isHydrating()) return Comp(rest)
|
|
34
|
+
const [mounted, setMounted] = createSignal(!isHydrating())
|
|
35
35
|
onSettled(() => {
|
|
36
36
|
setMounted(true)
|
|
37
37
|
})
|