@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.
@@ -1377,6 +1377,13 @@ const ActiveQuery = ({
1377
1377
  }, "Remove"), ' ', /*#__PURE__*/React.createElement(Button, {
1378
1378
  type: "button",
1379
1379
  onClick: () => {
1380
+ var _activeQuery$state$fe;
1381
+
1382
+ // Return early if the query is already restoring
1383
+ if (activeQuery.state.fetchStatus === 'fetching' && typeof ((_activeQuery$state$fe = activeQuery.state.fetchMeta) == null ? void 0 : _activeQuery$state$fe.__previousQueryOptions) === 'undefined') {
1384
+ return;
1385
+ }
1386
+
1380
1387
  if (activeQuery.state.data === undefined) {
1381
1388
  restoreQueryAfterLoadingOrError();
1382
1389
  } else {