@tanstack/query-devtools 5.28.6 → 5.32.1
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/Devtools/{MTC7LE5I.jsx → 4D2YBWGB.jsx} +10 -7
- package/build/Devtools/{TCDAW7I4.js → WIIHGP5G.js} +11 -3
- package/build/Devtools/{IATLRCG5.jsx → XEEESJAM.jsx} +10 -7
- package/build/Devtools/{BPGFTGZB.js → YADHKLPO.js} +11 -3
- package/build/dev.cjs +11 -3
- package/build/dev.js +1 -1
- package/build/dev.jsx +1 -1
- package/build/index.cjs +11 -3
- package/build/index.js +1 -1
- package/build/index.jsx +1 -1
- package/package.json +2 -2
- package/src/Devtools.tsx +11 -7
|
@@ -11772,13 +11772,16 @@ var QueryDetails = () => {
|
|
|
11772
11772
|
});
|
|
11773
11773
|
};
|
|
11774
11774
|
const restoreQueryAfterLoadingOrError = () => {
|
|
11775
|
-
activeQuery()
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11775
|
+
const activeQueryVal = activeQuery();
|
|
11776
|
+
const previousState = activeQueryVal.state;
|
|
11777
|
+
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
11778
|
+
activeQueryVal.cancel({ silent: true });
|
|
11779
|
+
activeQueryVal.setState({
|
|
11780
|
+
...previousState,
|
|
11781
|
+
fetchStatus: "idle",
|
|
11782
|
+
fetchMeta: null
|
|
11783
|
+
});
|
|
11784
|
+
activeQueryVal.fetch(previousOptions);
|
|
11782
11785
|
};
|
|
11783
11786
|
createEffect(() => {
|
|
11784
11787
|
if (statusLabel() !== "fetching") {
|
|
@@ -10999,10 +10999,18 @@ var QueryDetails = () => {
|
|
|
10999
10999
|
});
|
|
11000
11000
|
};
|
|
11001
11001
|
const restoreQueryAfterLoadingOrError = () => {
|
|
11002
|
-
activeQuery()
|
|
11003
|
-
|
|
11004
|
-
|
|
11002
|
+
const activeQueryVal = activeQuery();
|
|
11003
|
+
const previousState = activeQueryVal.state;
|
|
11004
|
+
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
11005
|
+
activeQueryVal.cancel({
|
|
11006
|
+
silent: true
|
|
11005
11007
|
});
|
|
11008
|
+
activeQueryVal.setState({
|
|
11009
|
+
...previousState,
|
|
11010
|
+
fetchStatus: "idle",
|
|
11011
|
+
fetchMeta: null
|
|
11012
|
+
});
|
|
11013
|
+
activeQueryVal.fetch(previousOptions);
|
|
11006
11014
|
};
|
|
11007
11015
|
createEffect(() => {
|
|
11008
11016
|
if (statusLabel() !== "fetching") {
|
|
@@ -11773,13 +11773,16 @@ var QueryDetails = () => {
|
|
|
11773
11773
|
});
|
|
11774
11774
|
};
|
|
11775
11775
|
const restoreQueryAfterLoadingOrError = () => {
|
|
11776
|
-
activeQuery()
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11776
|
+
const activeQueryVal = activeQuery();
|
|
11777
|
+
const previousState = activeQueryVal.state;
|
|
11778
|
+
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
11779
|
+
activeQueryVal.cancel({ silent: true });
|
|
11780
|
+
activeQueryVal.setState({
|
|
11781
|
+
...previousState,
|
|
11782
|
+
fetchStatus: "idle",
|
|
11783
|
+
fetchMeta: null
|
|
11784
|
+
});
|
|
11785
|
+
activeQueryVal.fetch(previousOptions);
|
|
11783
11786
|
};
|
|
11784
11787
|
createEffect(() => {
|
|
11785
11788
|
if (statusLabel() !== "fetching") {
|
|
@@ -10998,10 +10998,18 @@ var QueryDetails = () => {
|
|
|
10998
10998
|
});
|
|
10999
10999
|
};
|
|
11000
11000
|
const restoreQueryAfterLoadingOrError = () => {
|
|
11001
|
-
activeQuery()
|
|
11002
|
-
|
|
11003
|
-
|
|
11001
|
+
const activeQueryVal = activeQuery();
|
|
11002
|
+
const previousState = activeQueryVal.state;
|
|
11003
|
+
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
11004
|
+
activeQueryVal.cancel({
|
|
11005
|
+
silent: true
|
|
11004
11006
|
});
|
|
11007
|
+
activeQueryVal.setState({
|
|
11008
|
+
...previousState,
|
|
11009
|
+
fetchStatus: "idle",
|
|
11010
|
+
fetchMeta: null
|
|
11011
|
+
});
|
|
11012
|
+
activeQueryVal.fetch(previousOptions);
|
|
11005
11013
|
};
|
|
11006
11014
|
createEffect(() => {
|
|
11007
11015
|
if (statusLabel() !== "fetching") {
|
package/build/dev.cjs
CHANGED
|
@@ -14428,10 +14428,18 @@ var init_Devtools = __esm({
|
|
|
14428
14428
|
});
|
|
14429
14429
|
};
|
|
14430
14430
|
const restoreQueryAfterLoadingOrError = () => {
|
|
14431
|
-
activeQuery()
|
|
14432
|
-
|
|
14433
|
-
|
|
14431
|
+
const activeQueryVal = activeQuery();
|
|
14432
|
+
const previousState = activeQueryVal.state;
|
|
14433
|
+
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
14434
|
+
activeQueryVal.cancel({
|
|
14435
|
+
silent: true
|
|
14434
14436
|
});
|
|
14437
|
+
activeQueryVal.setState({
|
|
14438
|
+
...previousState,
|
|
14439
|
+
fetchStatus: "idle",
|
|
14440
|
+
fetchMeta: null
|
|
14441
|
+
});
|
|
14442
|
+
activeQueryVal.fetch(previousOptions);
|
|
14435
14443
|
};
|
|
14436
14444
|
createEffect(() => {
|
|
14437
14445
|
if (statusLabel() !== "fetching") {
|
package/build/dev.js
CHANGED
|
@@ -69,7 +69,7 @@ var TanstackQueryDevtools = class {
|
|
|
69
69
|
if (this.#Component) {
|
|
70
70
|
Devtools = this.#Component;
|
|
71
71
|
} else {
|
|
72
|
-
Devtools = lazy(() => import('./Devtools/
|
|
72
|
+
Devtools = lazy(() => import('./Devtools/WIIHGP5G.js'));
|
|
73
73
|
this.#Component = Devtools;
|
|
74
74
|
}
|
|
75
75
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
package/build/dev.jsx
CHANGED
|
@@ -73,7 +73,7 @@ var TanstackQueryDevtools = class {
|
|
|
73
73
|
if (this.#Component) {
|
|
74
74
|
Devtools = this.#Component;
|
|
75
75
|
} else {
|
|
76
|
-
Devtools = lazy(() => import("./Devtools/
|
|
76
|
+
Devtools = lazy(() => import("./Devtools/XEEESJAM.jsx"));
|
|
77
77
|
this.#Component = Devtools;
|
|
78
78
|
}
|
|
79
79
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
package/build/index.cjs
CHANGED
|
@@ -14426,10 +14426,18 @@ var init_Devtools = __esm({
|
|
|
14426
14426
|
});
|
|
14427
14427
|
};
|
|
14428
14428
|
const restoreQueryAfterLoadingOrError = () => {
|
|
14429
|
-
activeQuery()
|
|
14430
|
-
|
|
14431
|
-
|
|
14429
|
+
const activeQueryVal = activeQuery();
|
|
14430
|
+
const previousState = activeQueryVal.state;
|
|
14431
|
+
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
14432
|
+
activeQueryVal.cancel({
|
|
14433
|
+
silent: true
|
|
14432
14434
|
});
|
|
14435
|
+
activeQueryVal.setState({
|
|
14436
|
+
...previousState,
|
|
14437
|
+
fetchStatus: "idle",
|
|
14438
|
+
fetchMeta: null
|
|
14439
|
+
});
|
|
14440
|
+
activeQueryVal.fetch(previousOptions);
|
|
14433
14441
|
};
|
|
14434
14442
|
createEffect(() => {
|
|
14435
14443
|
if (statusLabel() !== "fetching") {
|
package/build/index.js
CHANGED
|
@@ -69,7 +69,7 @@ var TanstackQueryDevtools = class {
|
|
|
69
69
|
if (this.#Component) {
|
|
70
70
|
Devtools = this.#Component;
|
|
71
71
|
} else {
|
|
72
|
-
Devtools = lazy(() => import('./Devtools/
|
|
72
|
+
Devtools = lazy(() => import('./Devtools/YADHKLPO.js'));
|
|
73
73
|
this.#Component = Devtools;
|
|
74
74
|
}
|
|
75
75
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
package/build/index.jsx
CHANGED
|
@@ -73,7 +73,7 @@ var TanstackQueryDevtools = class {
|
|
|
73
73
|
if (this.#Component) {
|
|
74
74
|
Devtools = this.#Component;
|
|
75
75
|
} else {
|
|
76
|
-
Devtools = lazy(() => import("./Devtools/
|
|
76
|
+
Devtools = lazy(() => import("./Devtools/4D2YBWGB.jsx"));
|
|
77
77
|
this.#Component = Devtools;
|
|
78
78
|
}
|
|
79
79
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-devtools",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.1",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack Query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"superjson": "^1.13.3",
|
|
51
51
|
"tsup-preset-solid": "^2.2.0",
|
|
52
52
|
"vite-plugin-solid": "^2.9.1",
|
|
53
|
-
"@tanstack/query-core": "5.
|
|
53
|
+
"@tanstack/query-core": "5.32.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf ./build && rimraf ./coverage",
|
package/src/Devtools.tsx
CHANGED
|
@@ -1934,13 +1934,17 @@ const QueryDetails = () => {
|
|
|
1934
1934
|
}
|
|
1935
1935
|
|
|
1936
1936
|
const restoreQueryAfterLoadingOrError = () => {
|
|
1937
|
-
activeQuery()
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1937
|
+
const activeQueryVal = activeQuery()!
|
|
1938
|
+
const previousState = activeQueryVal.state
|
|
1939
|
+
const previousOptions = (activeQueryVal.state.fetchMeta as any)
|
|
1940
|
+
.__previousQueryOptions
|
|
1941
|
+
activeQueryVal.cancel({ silent: true })
|
|
1942
|
+
activeQueryVal.setState({
|
|
1943
|
+
...previousState,
|
|
1944
|
+
fetchStatus: 'idle',
|
|
1945
|
+
fetchMeta: null,
|
|
1946
|
+
})
|
|
1947
|
+
activeQueryVal.fetch(previousOptions)
|
|
1944
1948
|
}
|
|
1945
1949
|
|
|
1946
1950
|
createEffect(() => {
|