@tanstack/react-query-devtools 4.29.5 → 4.29.7
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/lib/devtools.esm.js +7 -0
- package/build/lib/devtools.esm.js.map +1 -1
- package/build/lib/devtools.js +7 -0
- package/build/lib/devtools.js.map +1 -1
- package/build/lib/devtools.mjs +7 -0
- package/build/lib/devtools.mjs.map +1 -1
- package/build/lib/index.prod.esm.js +7 -0
- package/build/lib/index.prod.esm.js.map +1 -1
- package/build/lib/index.prod.js +7 -0
- package/build/lib/index.prod.js.map +1 -1
- package/build/lib/index.prod.mjs +7 -0
- package/build/lib/index.prod.mjs.map +1 -1
- package/build/umd/index.development.js +7 -0
- package/build/umd/index.development.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/devtools.test.tsx +52 -0
- package/src/devtools.tsx +9 -0
|
@@ -3299,6 +3299,13 @@
|
|
|
3299
3299
|
}, "Remove"), ' ', /*#__PURE__*/React__namespace.createElement(Button, {
|
|
3300
3300
|
type: "button",
|
|
3301
3301
|
onClick: () => {
|
|
3302
|
+
var _activeQuery$state$fe;
|
|
3303
|
+
|
|
3304
|
+
// Return early if the query is already restoring
|
|
3305
|
+
if (activeQuery.state.fetchStatus === 'fetching' && typeof ((_activeQuery$state$fe = activeQuery.state.fetchMeta) == null ? void 0 : _activeQuery$state$fe.__previousQueryOptions) === 'undefined') {
|
|
3306
|
+
return;
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3302
3309
|
if (activeQuery.state.data === undefined) {
|
|
3303
3310
|
restoreQueryAfterLoadingOrError();
|
|
3304
3311
|
} else {
|