@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
package/build/lib/index.prod.js
CHANGED
|
@@ -1403,6 +1403,13 @@ const ActiveQuery = ({
|
|
|
1403
1403
|
}, "Remove"), ' ', /*#__PURE__*/React__namespace.createElement(Button, {
|
|
1404
1404
|
type: "button",
|
|
1405
1405
|
onClick: () => {
|
|
1406
|
+
var _activeQuery$state$fe;
|
|
1407
|
+
|
|
1408
|
+
// Return early if the query is already restoring
|
|
1409
|
+
if (activeQuery.state.fetchStatus === 'fetching' && typeof ((_activeQuery$state$fe = activeQuery.state.fetchMeta) == null ? void 0 : _activeQuery$state$fe.__previousQueryOptions) === 'undefined') {
|
|
1410
|
+
return;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1406
1413
|
if (activeQuery.state.data === undefined) {
|
|
1407
1414
|
restoreQueryAfterLoadingOrError();
|
|
1408
1415
|
} else {
|