@tanstack/react-query 4.29.1 → 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/build/lib/useQueries.esm.js +2 -1
- package/build/lib/useQueries.esm.js.map +1 -1
- package/build/lib/useQueries.js +2 -1
- package/build/lib/useQueries.js.map +1 -1
- package/build/lib/useQueries.mjs +2 -1
- package/build/lib/useQueries.mjs.map +1 -1
- package/build/umd/index.development.js +2 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/useQueries.ts +2 -2
package/package.json
CHANGED
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:
|
|
239
|
+
query: observerQueries[index]!,
|
|
240
240
|
}),
|
|
241
241
|
)
|
|
242
242
|
|