@tanstack/query-devtools 5.58.0 → 5.59.19
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/DevtoolsComponent/{H3J5RHJ6.js → ACWU3NT2.js} +1 -1
- package/build/DevtoolsComponent/{COOQDZLH.js → BMGNQTAT.js} +1 -1
- package/build/DevtoolsPanelComponent/{XV5R7GGF.js → 7QLFAFLW.js} +1 -1
- package/build/DevtoolsPanelComponent/{MU7WGUJF.js → UODQIBEW.js} +1 -1
- package/build/chunk/{DNUYL6JI.js → QULEXNPG.js} +4 -2
- package/build/chunk/{VREWMQAW.js → STCWXWCR.js} +4 -2
- package/build/dev.cjs +4 -2
- package/build/dev.js +2 -2
- package/build/index.cjs +4 -2
- package/build/index.js +2 -2
- package/package.json +2 -2
- package/src/Devtools.tsx +8 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/QULEXNPG.js';
|
|
2
2
|
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/T4EIIERB.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsComponent.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, Devtools } from '../chunk/STCWXWCR.js';
|
|
2
2
|
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/BLREPECS.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsComponent.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/QULEXNPG.js';
|
|
2
2
|
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/T4EIIERB.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsPanelComponent.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/
|
|
1
|
+
import { createLocalStorage, THEME_PREFERENCE, QueryDevtoolsContext, PiPProvider, ThemeContext, ParentPanel, ContentView } from '../chunk/STCWXWCR.js';
|
|
2
2
|
import { getPreferredColorScheme, createMemo, createComponent } from '../chunk/BLREPECS.js';
|
|
3
3
|
|
|
4
4
|
// src/DevtoolsPanelComponent.tsx
|
|
@@ -10859,7 +10859,7 @@ var QueryDetails = () => {
|
|
|
10859
10859
|
const restoreQueryAfterLoadingOrError = () => {
|
|
10860
10860
|
const activeQueryVal = activeQuery();
|
|
10861
10861
|
const previousState = activeQueryVal.state;
|
|
10862
|
-
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
10862
|
+
const previousOptions = activeQueryVal.state.fetchMeta ? activeQueryVal.state.fetchMeta.__previousQueryOptions : null;
|
|
10863
10863
|
activeQueryVal.cancel({
|
|
10864
10864
|
silent: true
|
|
10865
10865
|
});
|
|
@@ -10868,7 +10868,9 @@ var QueryDetails = () => {
|
|
|
10868
10868
|
fetchStatus: "idle",
|
|
10869
10869
|
fetchMeta: null
|
|
10870
10870
|
});
|
|
10871
|
-
|
|
10871
|
+
if (previousOptions) {
|
|
10872
|
+
activeQueryVal.fetch(previousOptions);
|
|
10873
|
+
}
|
|
10872
10874
|
};
|
|
10873
10875
|
createEffect(() => {
|
|
10874
10876
|
if (statusLabel() !== "fetching") {
|
|
@@ -10858,7 +10858,7 @@ var QueryDetails = () => {
|
|
|
10858
10858
|
const restoreQueryAfterLoadingOrError = () => {
|
|
10859
10859
|
const activeQueryVal = activeQuery();
|
|
10860
10860
|
const previousState = activeQueryVal.state;
|
|
10861
|
-
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
10861
|
+
const previousOptions = activeQueryVal.state.fetchMeta ? activeQueryVal.state.fetchMeta.__previousQueryOptions : null;
|
|
10862
10862
|
activeQueryVal.cancel({
|
|
10863
10863
|
silent: true
|
|
10864
10864
|
});
|
|
@@ -10867,7 +10867,9 @@ var QueryDetails = () => {
|
|
|
10867
10867
|
fetchStatus: "idle",
|
|
10868
10868
|
fetchMeta: null
|
|
10869
10869
|
});
|
|
10870
|
-
|
|
10870
|
+
if (previousOptions) {
|
|
10871
|
+
activeQueryVal.fetch(previousOptions);
|
|
10872
|
+
}
|
|
10871
10873
|
};
|
|
10872
10874
|
createEffect(() => {
|
|
10873
10875
|
if (statusLabel() !== "fetching") {
|
package/build/dev.cjs
CHANGED
|
@@ -14359,7 +14359,7 @@ var init_Devtools = __esm({
|
|
|
14359
14359
|
const restoreQueryAfterLoadingOrError = () => {
|
|
14360
14360
|
const activeQueryVal = activeQuery();
|
|
14361
14361
|
const previousState = activeQueryVal.state;
|
|
14362
|
-
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
14362
|
+
const previousOptions = activeQueryVal.state.fetchMeta ? activeQueryVal.state.fetchMeta.__previousQueryOptions : null;
|
|
14363
14363
|
activeQueryVal.cancel({
|
|
14364
14364
|
silent: true
|
|
14365
14365
|
});
|
|
@@ -14368,7 +14368,9 @@ var init_Devtools = __esm({
|
|
|
14368
14368
|
fetchStatus: "idle",
|
|
14369
14369
|
fetchMeta: null
|
|
14370
14370
|
});
|
|
14371
|
-
|
|
14371
|
+
if (previousOptions) {
|
|
14372
|
+
activeQueryVal.fetch(previousOptions);
|
|
14373
|
+
}
|
|
14372
14374
|
};
|
|
14373
14375
|
createEffect(() => {
|
|
14374
14376
|
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('./DevtoolsComponent/
|
|
72
|
+
Devtools = lazy(() => import('./DevtoolsComponent/ACWU3NT2.js'));
|
|
73
73
|
this.#Component = Devtools;
|
|
74
74
|
}
|
|
75
75
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -192,7 +192,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
192
192
|
if (this.#Component) {
|
|
193
193
|
Devtools = this.#Component;
|
|
194
194
|
} else {
|
|
195
|
-
Devtools = lazy(() => import('./DevtoolsPanelComponent/
|
|
195
|
+
Devtools = lazy(() => import('./DevtoolsPanelComponent/7QLFAFLW.js'));
|
|
196
196
|
this.#Component = Devtools;
|
|
197
197
|
}
|
|
198
198
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
package/build/index.cjs
CHANGED
|
@@ -14357,7 +14357,7 @@ var init_Devtools = __esm({
|
|
|
14357
14357
|
const restoreQueryAfterLoadingOrError = () => {
|
|
14358
14358
|
const activeQueryVal = activeQuery();
|
|
14359
14359
|
const previousState = activeQueryVal.state;
|
|
14360
|
-
const previousOptions = activeQueryVal.state.fetchMeta.__previousQueryOptions;
|
|
14360
|
+
const previousOptions = activeQueryVal.state.fetchMeta ? activeQueryVal.state.fetchMeta.__previousQueryOptions : null;
|
|
14361
14361
|
activeQueryVal.cancel({
|
|
14362
14362
|
silent: true
|
|
14363
14363
|
});
|
|
@@ -14366,7 +14366,9 @@ var init_Devtools = __esm({
|
|
|
14366
14366
|
fetchStatus: "idle",
|
|
14367
14367
|
fetchMeta: null
|
|
14368
14368
|
});
|
|
14369
|
-
|
|
14369
|
+
if (previousOptions) {
|
|
14370
|
+
activeQueryVal.fetch(previousOptions);
|
|
14371
|
+
}
|
|
14370
14372
|
};
|
|
14371
14373
|
createEffect(() => {
|
|
14372
14374
|
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('./DevtoolsComponent/
|
|
72
|
+
Devtools = lazy(() => import('./DevtoolsComponent/BMGNQTAT.js'));
|
|
73
73
|
this.#Component = Devtools;
|
|
74
74
|
}
|
|
75
75
|
setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
|
|
@@ -192,7 +192,7 @@ var TanstackQueryDevtoolsPanel = class {
|
|
|
192
192
|
if (this.#Component) {
|
|
193
193
|
Devtools = this.#Component;
|
|
194
194
|
} else {
|
|
195
|
-
Devtools = lazy(() => import('./DevtoolsPanelComponent/
|
|
195
|
+
Devtools = lazy(() => import('./DevtoolsPanelComponent/UODQIBEW.js'));
|
|
196
196
|
this.#Component = Devtools;
|
|
197
197
|
}
|
|
198
198
|
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.59.19",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack Query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"superjson": "^2.2.1",
|
|
55
55
|
"tsup-preset-solid": "^2.2.0",
|
|
56
56
|
"vite-plugin-solid": "^2.10.2",
|
|
57
|
-
"@tanstack/query-core": "5.
|
|
57
|
+
"@tanstack/query-core": "5.59.17"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {}
|
|
60
60
|
}
|
package/src/Devtools.tsx
CHANGED
|
@@ -1789,15 +1789,20 @@ const QueryDetails = () => {
|
|
|
1789
1789
|
const restoreQueryAfterLoadingOrError = () => {
|
|
1790
1790
|
const activeQueryVal = activeQuery()!
|
|
1791
1791
|
const previousState = activeQueryVal.state
|
|
1792
|
-
const previousOptions =
|
|
1793
|
-
.__previousQueryOptions
|
|
1792
|
+
const previousOptions = activeQueryVal.state.fetchMeta
|
|
1793
|
+
? (activeQueryVal.state.fetchMeta as any).__previousQueryOptions
|
|
1794
|
+
: null
|
|
1795
|
+
|
|
1794
1796
|
activeQueryVal.cancel({ silent: true })
|
|
1795
1797
|
activeQueryVal.setState({
|
|
1796
1798
|
...previousState,
|
|
1797
1799
|
fetchStatus: 'idle',
|
|
1798
1800
|
fetchMeta: null,
|
|
1799
1801
|
})
|
|
1800
|
-
|
|
1802
|
+
|
|
1803
|
+
if (previousOptions) {
|
|
1804
|
+
activeQueryVal.fetch(previousOptions)
|
|
1805
|
+
}
|
|
1801
1806
|
}
|
|
1802
1807
|
|
|
1803
1808
|
createEffect(() => {
|