@tanstack/react-query 4.33.0 → 4.35.3

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.
@@ -1044,8 +1044,8 @@
1044
1044
  }
1045
1045
  }
1046
1046
 
1047
- if (!Array.isArray(this.options.queryKey)) {
1048
- {
1047
+ {
1048
+ if (!Array.isArray(this.options.queryKey)) {
1049
1049
  this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");
1050
1050
  }
1051
1051
  }
@@ -1242,7 +1242,8 @@
1242
1242
  const error = action.error;
1243
1243
 
1244
1244
  if (isCancelledError(error) && error.revert && this.revertState) {
1245
- return { ...this.revertState
1245
+ return { ...this.revertState,
1246
+ fetchStatus: 'idle'
1246
1247
  };
1247
1248
  }
1248
1249