@tanstack/react-query 4.28.0 → 4.29.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-query",
3
- "version": "4.28.0",
3
+ "version": "4.29.2",
4
4
  "description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "use-sync-external-store": "^1.2.0",
50
- "@tanstack/query-core": "4.27.0"
50
+ "@tanstack/query-core": "4.29.1"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
package/src/useQueries.ts CHANGED
@@ -229,14 +229,14 @@ export function useQueries<T extends any[]>({
229
229
  if (suspensePromises.length > 0) {
230
230
  throw Promise.all(suspensePromises)
231
231
  }
232
-
232
+ const observerQueries = observer.getQueries()
233
233
  const firstSingleResultWhichShouldThrow = optimisticResult.find(
234
234
  (result, index) =>
235
235
  getHasError({
236
236
  result,
237
237
  errorResetBoundary,
238
238
  useErrorBoundary: defaultedQueries[index]?.useErrorBoundary ?? false,
239
- query: observer.getQueries()[index]!,
239
+ query: observerQueries[index]!,
240
240
  }),
241
241
  )
242
242