@tanstack/react-query 5.105.0 → 5.105.1
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/legacy/HydrationBoundary.cjs +2 -3
- package/build/legacy/HydrationBoundary.d.cts +0 -2
- package/build/legacy/HydrationBoundary.d.cts.map +1 -1
- package/build/legacy/HydrationBoundary.d.ts +0 -2
- package/build/legacy/HydrationBoundary.d.ts.map +1 -1
- package/build/legacy/HydrationBoundary.js +1 -2
- package/build/legacy/IsRestoringProvider.cjs +2 -3
- package/build/legacy/IsRestoringProvider.d.cts +0 -2
- package/build/legacy/IsRestoringProvider.d.cts.map +1 -1
- package/build/legacy/IsRestoringProvider.d.ts +0 -2
- package/build/legacy/IsRestoringProvider.d.ts.map +1 -1
- package/build/legacy/IsRestoringProvider.js +1 -2
- package/build/legacy/QueryClientProvider.cjs +2 -3
- package/build/legacy/QueryClientProvider.d.cts +0 -2
- package/build/legacy/QueryClientProvider.d.cts.map +1 -1
- package/build/legacy/QueryClientProvider.d.ts +0 -2
- package/build/legacy/QueryClientProvider.d.ts.map +1 -1
- package/build/legacy/QueryClientProvider.js +1 -2
- package/build/legacy/QueryErrorResetBoundary.cjs +2 -3
- package/build/legacy/QueryErrorResetBoundary.d.cts +1 -3
- package/build/legacy/QueryErrorResetBoundary.d.cts.map +1 -1
- package/build/legacy/QueryErrorResetBoundary.d.ts +1 -3
- package/build/legacy/QueryErrorResetBoundary.d.ts.map +1 -1
- package/build/legacy/QueryErrorResetBoundary.js +1 -2
- package/build/legacy/errorBoundaryUtils.cjs +2 -3
- package/build/legacy/errorBoundaryUtils.d.cts +0 -2
- package/build/legacy/errorBoundaryUtils.d.cts.map +1 -1
- package/build/legacy/errorBoundaryUtils.d.ts +0 -2
- package/build/legacy/errorBoundaryUtils.d.ts.map +1 -1
- package/build/legacy/errorBoundaryUtils.js +1 -2
- package/build/legacy/index.cjs +1 -2
- package/build/legacy/index.js +1 -2
- package/build/legacy/infiniteQueryOptions.cjs +1 -2
- package/build/legacy/infiniteQueryOptions.cjs.map +1 -1
- package/build/legacy/infiniteQueryOptions.d.cts +16 -16
- package/build/legacy/infiniteQueryOptions.d.cts.map +1 -1
- package/build/legacy/infiniteQueryOptions.d.ts +16 -16
- package/build/legacy/infiniteQueryOptions.d.ts.map +1 -1
- package/build/legacy/infiniteQueryOptions.js +1 -2
- package/build/legacy/infiniteQueryOptions.js.map +1 -1
- package/build/legacy/mutationOptions.cjs +1 -2
- package/build/legacy/mutationOptions.d.cts +0 -2
- package/build/legacy/mutationOptions.d.cts.map +1 -1
- package/build/legacy/mutationOptions.d.ts +0 -2
- package/build/legacy/mutationOptions.d.ts.map +1 -1
- package/build/legacy/mutationOptions.js +1 -2
- package/build/legacy/queryOptions.cjs +1 -2
- package/build/legacy/queryOptions.cjs.map +1 -1
- package/build/legacy/queryOptions.d.cts +16 -15
- package/build/legacy/queryOptions.d.cts.map +1 -1
- package/build/legacy/queryOptions.d.ts +16 -15
- package/build/legacy/queryOptions.d.ts.map +1 -1
- package/build/legacy/queryOptions.js +1 -2
- package/build/legacy/queryOptions.js.map +1 -1
- package/build/legacy/{rolldown-runtime-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
- package/build/legacy/suspense.cjs +1 -2
- package/build/legacy/suspense.d.cts +0 -2
- package/build/legacy/suspense.d.cts.map +1 -1
- package/build/legacy/suspense.d.ts +0 -2
- package/build/legacy/suspense.d.ts.map +1 -1
- package/build/legacy/suspense.js +1 -2
- package/build/legacy/types.cjs +1 -2
- package/build/legacy/types.d.cts +0 -2
- package/build/legacy/types.d.cts.map +1 -1
- package/build/legacy/types.d.ts +0 -2
- package/build/legacy/types.d.ts.map +1 -1
- package/build/legacy/types.js +1 -2
- package/build/legacy/useBaseQuery.cjs +2 -3
- package/build/legacy/useBaseQuery.d.cts +0 -2
- package/build/legacy/useBaseQuery.d.cts.map +1 -1
- package/build/legacy/useBaseQuery.d.ts +0 -2
- package/build/legacy/useBaseQuery.d.ts.map +1 -1
- package/build/legacy/useBaseQuery.js +1 -2
- package/build/legacy/useInfiniteQuery.cjs +1 -2
- package/build/legacy/useInfiniteQuery.cjs.map +1 -1
- package/build/legacy/useInfiniteQuery.d.cts +2 -4
- package/build/legacy/useInfiniteQuery.d.cts.map +1 -1
- package/build/legacy/useInfiniteQuery.d.ts +2 -4
- package/build/legacy/useInfiniteQuery.d.ts.map +1 -1
- package/build/legacy/useInfiniteQuery.js +1 -2
- package/build/legacy/useInfiniteQuery.js.map +1 -1
- package/build/legacy/useIsFetching.cjs +2 -3
- package/build/legacy/useIsFetching.cjs.map +1 -1
- package/build/legacy/useIsFetching.d.cts +1 -3
- package/build/legacy/useIsFetching.d.cts.map +1 -1
- package/build/legacy/useIsFetching.d.ts +1 -3
- package/build/legacy/useIsFetching.d.ts.map +1 -1
- package/build/legacy/useIsFetching.js +1 -2
- package/build/legacy/useIsFetching.js.map +1 -1
- package/build/legacy/useMutation.cjs +2 -3
- package/build/legacy/useMutation.d.cts +0 -2
- package/build/legacy/useMutation.d.cts.map +1 -1
- package/build/legacy/useMutation.d.ts +0 -2
- package/build/legacy/useMutation.d.ts.map +1 -1
- package/build/legacy/useMutation.js +1 -2
- package/build/legacy/useMutationState.cjs +2 -3
- package/build/legacy/useMutationState.d.cts +0 -2
- package/build/legacy/useMutationState.d.cts.map +1 -1
- package/build/legacy/useMutationState.d.ts +0 -2
- package/build/legacy/useMutationState.d.ts.map +1 -1
- package/build/legacy/useMutationState.js +1 -2
- package/build/legacy/usePrefetchInfiniteQuery.cjs +1 -2
- package/build/legacy/usePrefetchInfiniteQuery.d.cts +0 -2
- package/build/legacy/usePrefetchInfiniteQuery.d.cts.map +1 -1
- package/build/legacy/usePrefetchInfiniteQuery.d.ts +0 -2
- package/build/legacy/usePrefetchInfiniteQuery.d.ts.map +1 -1
- package/build/legacy/usePrefetchInfiniteQuery.js +1 -2
- package/build/legacy/usePrefetchQuery.cjs +1 -2
- package/build/legacy/usePrefetchQuery.d.cts +0 -2
- package/build/legacy/usePrefetchQuery.d.cts.map +1 -1
- package/build/legacy/usePrefetchQuery.d.ts +0 -2
- package/build/legacy/usePrefetchQuery.d.ts.map +1 -1
- package/build/legacy/usePrefetchQuery.js +1 -2
- package/build/legacy/useQueries.cjs +2 -3
- package/build/legacy/useQueries.d.cts +0 -2
- package/build/legacy/useQueries.d.cts.map +1 -1
- package/build/legacy/useQueries.d.ts +0 -2
- package/build/legacy/useQueries.d.ts.map +1 -1
- package/build/legacy/useQueries.js +1 -2
- package/build/legacy/useQuery.cjs +1 -2
- package/build/legacy/useQuery.cjs.map +1 -1
- package/build/legacy/useQuery.d.cts +5 -7
- package/build/legacy/useQuery.d.cts.map +1 -1
- package/build/legacy/useQuery.d.ts +5 -7
- package/build/legacy/useQuery.d.ts.map +1 -1
- package/build/legacy/useQuery.js +1 -2
- package/build/legacy/useQuery.js.map +1 -1
- package/build/legacy/useSuspenseInfiniteQuery.cjs +1 -2
- package/build/legacy/useSuspenseInfiniteQuery.d.cts +0 -2
- package/build/legacy/useSuspenseInfiniteQuery.d.cts.map +1 -1
- package/build/legacy/useSuspenseInfiniteQuery.d.ts +0 -2
- package/build/legacy/useSuspenseInfiniteQuery.d.ts.map +1 -1
- package/build/legacy/useSuspenseInfiniteQuery.js +1 -2
- package/build/legacy/useSuspenseQueries.cjs +1 -2
- package/build/legacy/useSuspenseQueries.d.cts +0 -2
- package/build/legacy/useSuspenseQueries.d.cts.map +1 -1
- package/build/legacy/useSuspenseQueries.d.ts +0 -2
- package/build/legacy/useSuspenseQueries.d.ts.map +1 -1
- package/build/legacy/useSuspenseQueries.js +1 -2
- package/build/legacy/useSuspenseQuery.cjs +1 -2
- package/build/legacy/useSuspenseQuery.d.cts +0 -2
- package/build/legacy/useSuspenseQuery.d.cts.map +1 -1
- package/build/legacy/useSuspenseQuery.d.ts +0 -2
- package/build/legacy/useSuspenseQuery.d.ts.map +1 -1
- package/build/legacy/useSuspenseQuery.js +1 -2
- package/build/modern/HydrationBoundary.cjs +2 -3
- package/build/modern/HydrationBoundary.d.cts +0 -2
- package/build/modern/HydrationBoundary.d.cts.map +1 -1
- package/build/modern/HydrationBoundary.d.ts +0 -2
- package/build/modern/HydrationBoundary.d.ts.map +1 -1
- package/build/modern/HydrationBoundary.js +1 -2
- package/build/modern/IsRestoringProvider.cjs +2 -3
- package/build/modern/IsRestoringProvider.d.cts +0 -2
- package/build/modern/IsRestoringProvider.d.cts.map +1 -1
- package/build/modern/IsRestoringProvider.d.ts +0 -2
- package/build/modern/IsRestoringProvider.d.ts.map +1 -1
- package/build/modern/IsRestoringProvider.js +1 -2
- package/build/modern/QueryClientProvider.cjs +2 -3
- package/build/modern/QueryClientProvider.d.cts +0 -2
- package/build/modern/QueryClientProvider.d.cts.map +1 -1
- package/build/modern/QueryClientProvider.d.ts +0 -2
- package/build/modern/QueryClientProvider.d.ts.map +1 -1
- package/build/modern/QueryClientProvider.js +1 -2
- package/build/modern/QueryErrorResetBoundary.cjs +2 -3
- package/build/modern/QueryErrorResetBoundary.d.cts +1 -3
- package/build/modern/QueryErrorResetBoundary.d.cts.map +1 -1
- package/build/modern/QueryErrorResetBoundary.d.ts +1 -3
- package/build/modern/QueryErrorResetBoundary.d.ts.map +1 -1
- package/build/modern/QueryErrorResetBoundary.js +1 -2
- package/build/modern/errorBoundaryUtils.cjs +2 -3
- package/build/modern/errorBoundaryUtils.d.cts +0 -2
- package/build/modern/errorBoundaryUtils.d.cts.map +1 -1
- package/build/modern/errorBoundaryUtils.d.ts +0 -2
- package/build/modern/errorBoundaryUtils.d.ts.map +1 -1
- package/build/modern/errorBoundaryUtils.js +1 -2
- package/build/modern/index.cjs +1 -2
- package/build/modern/index.js +1 -2
- package/build/modern/infiniteQueryOptions.cjs +1 -2
- package/build/modern/infiniteQueryOptions.cjs.map +1 -1
- package/build/modern/infiniteQueryOptions.d.cts +16 -16
- package/build/modern/infiniteQueryOptions.d.cts.map +1 -1
- package/build/modern/infiniteQueryOptions.d.ts +16 -16
- package/build/modern/infiniteQueryOptions.d.ts.map +1 -1
- package/build/modern/infiniteQueryOptions.js +1 -2
- package/build/modern/infiniteQueryOptions.js.map +1 -1
- package/build/modern/mutationOptions.cjs +1 -2
- package/build/modern/mutationOptions.d.cts +0 -2
- package/build/modern/mutationOptions.d.cts.map +1 -1
- package/build/modern/mutationOptions.d.ts +0 -2
- package/build/modern/mutationOptions.d.ts.map +1 -1
- package/build/modern/mutationOptions.js +1 -2
- package/build/modern/queryOptions.cjs +1 -2
- package/build/modern/queryOptions.cjs.map +1 -1
- package/build/modern/queryOptions.d.cts +16 -15
- package/build/modern/queryOptions.d.cts.map +1 -1
- package/build/modern/queryOptions.d.ts +16 -15
- package/build/modern/queryOptions.d.ts.map +1 -1
- package/build/modern/queryOptions.js +1 -2
- package/build/modern/queryOptions.js.map +1 -1
- package/build/modern/{rolldown-runtime-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
- package/build/modern/suspense.cjs +1 -2
- package/build/modern/suspense.d.cts +0 -2
- package/build/modern/suspense.d.cts.map +1 -1
- package/build/modern/suspense.d.ts +0 -2
- package/build/modern/suspense.d.ts.map +1 -1
- package/build/modern/suspense.js +1 -2
- package/build/modern/types.cjs +1 -2
- package/build/modern/types.d.cts +0 -2
- package/build/modern/types.d.cts.map +1 -1
- package/build/modern/types.d.ts +0 -2
- package/build/modern/types.d.ts.map +1 -1
- package/build/modern/types.js +1 -2
- package/build/modern/useBaseQuery.cjs +2 -3
- package/build/modern/useBaseQuery.d.cts +0 -2
- package/build/modern/useBaseQuery.d.cts.map +1 -1
- package/build/modern/useBaseQuery.d.ts +0 -2
- package/build/modern/useBaseQuery.d.ts.map +1 -1
- package/build/modern/useBaseQuery.js +1 -2
- package/build/modern/useInfiniteQuery.cjs +1 -2
- package/build/modern/useInfiniteQuery.cjs.map +1 -1
- package/build/modern/useInfiniteQuery.d.cts +2 -4
- package/build/modern/useInfiniteQuery.d.cts.map +1 -1
- package/build/modern/useInfiniteQuery.d.ts +2 -4
- package/build/modern/useInfiniteQuery.d.ts.map +1 -1
- package/build/modern/useInfiniteQuery.js +1 -2
- package/build/modern/useInfiniteQuery.js.map +1 -1
- package/build/modern/useIsFetching.cjs +2 -3
- package/build/modern/useIsFetching.cjs.map +1 -1
- package/build/modern/useIsFetching.d.cts +1 -3
- package/build/modern/useIsFetching.d.cts.map +1 -1
- package/build/modern/useIsFetching.d.ts +1 -3
- package/build/modern/useIsFetching.d.ts.map +1 -1
- package/build/modern/useIsFetching.js +1 -2
- package/build/modern/useIsFetching.js.map +1 -1
- package/build/modern/useMutation.cjs +2 -3
- package/build/modern/useMutation.d.cts +0 -2
- package/build/modern/useMutation.d.cts.map +1 -1
- package/build/modern/useMutation.d.ts +0 -2
- package/build/modern/useMutation.d.ts.map +1 -1
- package/build/modern/useMutation.js +1 -2
- package/build/modern/useMutationState.cjs +2 -3
- package/build/modern/useMutationState.d.cts +0 -2
- package/build/modern/useMutationState.d.cts.map +1 -1
- package/build/modern/useMutationState.d.ts +0 -2
- package/build/modern/useMutationState.d.ts.map +1 -1
- package/build/modern/useMutationState.js +1 -2
- package/build/modern/usePrefetchInfiniteQuery.cjs +1 -2
- package/build/modern/usePrefetchInfiniteQuery.d.cts +0 -2
- package/build/modern/usePrefetchInfiniteQuery.d.cts.map +1 -1
- package/build/modern/usePrefetchInfiniteQuery.d.ts +0 -2
- package/build/modern/usePrefetchInfiniteQuery.d.ts.map +1 -1
- package/build/modern/usePrefetchInfiniteQuery.js +1 -2
- package/build/modern/usePrefetchQuery.cjs +1 -2
- package/build/modern/usePrefetchQuery.d.cts +0 -2
- package/build/modern/usePrefetchQuery.d.cts.map +1 -1
- package/build/modern/usePrefetchQuery.d.ts +0 -2
- package/build/modern/usePrefetchQuery.d.ts.map +1 -1
- package/build/modern/usePrefetchQuery.js +1 -2
- package/build/modern/useQueries.cjs +2 -3
- package/build/modern/useQueries.d.cts +0 -2
- package/build/modern/useQueries.d.cts.map +1 -1
- package/build/modern/useQueries.d.ts +0 -2
- package/build/modern/useQueries.d.ts.map +1 -1
- package/build/modern/useQueries.js +1 -2
- package/build/modern/useQuery.cjs +1 -2
- package/build/modern/useQuery.cjs.map +1 -1
- package/build/modern/useQuery.d.cts +5 -7
- package/build/modern/useQuery.d.cts.map +1 -1
- package/build/modern/useQuery.d.ts +5 -7
- package/build/modern/useQuery.d.ts.map +1 -1
- package/build/modern/useQuery.js +1 -2
- package/build/modern/useQuery.js.map +1 -1
- package/build/modern/useSuspenseInfiniteQuery.cjs +1 -2
- package/build/modern/useSuspenseInfiniteQuery.d.cts +0 -2
- package/build/modern/useSuspenseInfiniteQuery.d.cts.map +1 -1
- package/build/modern/useSuspenseInfiniteQuery.d.ts +0 -2
- package/build/modern/useSuspenseInfiniteQuery.d.ts.map +1 -1
- package/build/modern/useSuspenseInfiniteQuery.js +1 -2
- package/build/modern/useSuspenseQueries.cjs +1 -2
- package/build/modern/useSuspenseQueries.d.cts +0 -2
- package/build/modern/useSuspenseQueries.d.cts.map +1 -1
- package/build/modern/useSuspenseQueries.d.ts +0 -2
- package/build/modern/useSuspenseQueries.d.ts.map +1 -1
- package/build/modern/useSuspenseQueries.js +1 -2
- package/build/modern/useSuspenseQuery.cjs +1 -2
- package/build/modern/useSuspenseQuery.d.cts +0 -2
- package/build/modern/useSuspenseQuery.d.cts.map +1 -1
- package/build/modern/useSuspenseQuery.d.ts +0 -2
- package/build/modern/useSuspenseQuery.d.ts.map +1 -1
- package/build/modern/useSuspenseQuery.js +1 -2
- package/package.json +8 -8
- package/src/infiniteQueryOptions.ts +15 -14
- package/src/queryOptions.ts +16 -13
- package/src/useInfiniteQuery.ts +2 -2
- package/src/useIsFetching.ts +1 -1
- package/src/useQuery.ts +5 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { defaultThrowOnError } from "./suspense.js";
|
|
3
3
|
import { useBaseQuery } from "./useBaseQuery.js";
|
|
4
4
|
import { InfiniteQueryObserver, skipToken } from "@tanstack/query-core";
|
|
5
|
-
|
|
5
|
+
// src/useSuspenseInfiniteQuery.ts
|
|
6
6
|
/**
|
|
7
7
|
* The options for `useSuspenseInfiniteQuery` are the same as for `useInfiniteQuery`, except for `throwOnError`,
|
|
8
8
|
* `enabled`, and `placeholderData`.
|
|
@@ -99,7 +99,6 @@ function useSuspenseInfiniteQuery(options, queryClient) {
|
|
|
99
99
|
placeholderData: void 0
|
|
100
100
|
}, InfiniteQueryObserver, queryClient);
|
|
101
101
|
}
|
|
102
|
-
//#endregion
|
|
103
102
|
export { useSuspenseInfiniteQuery };
|
|
104
103
|
|
|
105
104
|
//# sourceMappingURL=useSuspenseInfiniteQuery.js.map
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const require_suspense = require("./suspense.cjs");
|
|
4
4
|
const require_useQueries = require("./useQueries.cjs");
|
|
5
5
|
let _tanstack_query_core = require("@tanstack/query-core");
|
|
6
|
-
|
|
6
|
+
// src/useSuspenseQueries.ts
|
|
7
7
|
function useSuspenseQueries(options, queryClient) {
|
|
8
8
|
return require_useQueries.useQueries({
|
|
9
9
|
...options,
|
|
@@ -21,7 +21,6 @@ function useSuspenseQueries(options, queryClient) {
|
|
|
21
21
|
})
|
|
22
22
|
}, queryClient);
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
exports.useSuspenseQueries = useSuspenseQueries;
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=useSuspenseQueries.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UseSuspenseQueryOptions, UseSuspenseQueryResult } from "./types.cjs";
|
|
2
2
|
import { DefaultError, QueryClient, QueryFunction, ThrowOnError } from "@tanstack/query-core";
|
|
3
|
-
//#region src/useSuspenseQueries.d.ts
|
|
4
3
|
type MAXIMUM_DEPTH = 20;
|
|
5
4
|
type SkipTokenForUseQueries = symbol;
|
|
6
5
|
type GetUseSuspenseQueryOptions<T> = T extends {
|
|
@@ -368,5 +367,4 @@ export declare function useSuspenseQueries<T extends Array<any>, TCombinedResult
|
|
|
368
367
|
*/
|
|
369
368
|
combine?: (result: SuspenseQueriesResults<T>) => TCombinedResult;
|
|
370
369
|
}, queryClient?: QueryClient): TCombinedResult;
|
|
371
|
-
//#endregion
|
|
372
370
|
//# sourceMappingURL=useSuspenseQueries.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSuspenseQueries.d.cts","names":[],"sources":["../../src/useSuspenseQueries.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSuspenseQueries.d.cts","names":[],"sources":["../../src/useSuspenseQueries.ts"],"mappings":";;KAaK;KAGA;KAEA,2BAA2B,KAE9B;EACE,mBAAmB;EACnB,cAAc;EACd,YAAY;IAEV,wBAAwB,cAAc,QAAQ,SAC9C;EAAY,mBAAmB;EAAc,cAAc;IACzD,wBAAwB,cAAc,UACtC;EAAY,YAAY;EAAO,cAAc;IAC3C,iCAAiC,QAAQ,SAEzC,iBAAiB,oBAAoB,cAAc,SACjD,wBAAwB,cAAc,QAAQ,SAC9C,iBAAiB,oBAAoB,UACnC,wBAAwB,cAAc,UACtC,iBAAiB,gBACf,wBAAwB,gBAExB;EACI,UACI,oBAAoB,oBAAoB,aACxC;EACJ,UAAU,oBAAoB;EAC9B,eAAe,wBAAwB;IAEzC,wBACE,cACA,QACA,OACA,aAEF;EACI,UACI,oBAAoB,oBAAoB,aACxC;EACJ,eAAe,wBAAwB;IAEzC,wBACE,cACA,QACA,cACA,aAGF;KAEf,0BAA0B,KAE7B;EAAY;EAAkB,cAAc;EAAQ,YAAY;IAC5D,uBAAuB,OAAO,UAC9B;EAAY,mBAAmB;EAAc,cAAc;IACzD,uBAAuB,cAAc,UACrC;EAAY,YAAY;EAAO,cAAc;IAC3C,uBAAuB,OAAO,UAE9B,sBAAsB,cAAc,SAClC,uBAAuB,OAAO,UAC9B,iBAAiB,oBAAoB,UACnC,uBAAuB,cAAc,UACrC,iBAAiB,gBACf,uBAAuB,gBAEvB;EACI,UACI,oBAAoB,qBACpB;EACJ,UAAU,oBAAoB;EAC9B,eAAe,wBAAwB;IAEzC,uCACkB,QAAQ,eAAe,uBACvB,SAAS,eAAe,UAE1C;EACI,UACI,oBAAoB,qBACpB;EACJ,eAAe,wBAAwB;IAEzC,uBACE,8BACgB,SAAS,eAAe,UAG1C;;;;;;;;;;;;;;;;YAiBR,uBACV,UAAU,YACV,iBAAiB,iBACjB,eAAe,8BACb,yBAAyB,gBACzB,MAAM,2BACN,oBAEE,iBAAiB,YACX,UAAU,2BAA2B,SACzC,iBAAiB,eAAe,SAC9B,2BACM,YACA,UAAU,2BAA2B,YACrC,cAEN,uBAAuB,IACrB,IAGA,UAAU,MACN,8BACQ,oBACA,cACA,aACA,cAGV,MACE,wBAAwB,cAAc,QAAQ,OAAO,cAGvD,MAAM;;;;;;;;;;;;YAaR,uBACV,UAAU,YACV,iBAAiB,iBACjB,eAAe,8BACb,yBAAyB,gBACzB,MAAM,0BACN,oBAEE,iBAAiB,YACX,UAAU,0BAA0B,SACxC,iBAAiB,eAAe,SAC9B,2BACM,YACA,UAAU,0BAA0B,YACpC,iBAEH,WAAW,IAAI,0BAA0B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoKxC,mBACd,UAAU,YACV,kBAAkB,uBAAuB,IAEzC;;;;EAIE,sBACiB,uBAAuB,sBACpB,WAAW,IAAI,2BAA2B,EAAE;;;;;EAKhE,WAAW,QAAQ,uBAAuB,OAAO;GAEnD,cAAc,cACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuHa,mBACd,UAAU,YACV,kBAAkB,uBAAuB,IAEzC;;;;EAIE,sBAAsB,uBAAuB;;;;;EAK7C,WAAW,QAAQ,uBAAuB,OAAO;GAEnD,cAAc,cACb"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UseSuspenseQueryOptions, UseSuspenseQueryResult } from "./types.js";
|
|
2
2
|
import { DefaultError, QueryClient, QueryFunction, ThrowOnError } from "@tanstack/query-core";
|
|
3
|
-
//#region src/useSuspenseQueries.d.ts
|
|
4
3
|
type MAXIMUM_DEPTH = 20;
|
|
5
4
|
type SkipTokenForUseQueries = symbol;
|
|
6
5
|
type GetUseSuspenseQueryOptions<T> = T extends {
|
|
@@ -368,5 +367,4 @@ export declare function useSuspenseQueries<T extends Array<any>, TCombinedResult
|
|
|
368
367
|
*/
|
|
369
368
|
combine?: (result: SuspenseQueriesResults<T>) => TCombinedResult;
|
|
370
369
|
}, queryClient?: QueryClient): TCombinedResult;
|
|
371
|
-
//#endregion
|
|
372
370
|
//# sourceMappingURL=useSuspenseQueries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSuspenseQueries.d.ts","names":[],"sources":["../../src/useSuspenseQueries.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSuspenseQueries.d.ts","names":[],"sources":["../../src/useSuspenseQueries.ts"],"mappings":";;KAaK;KAGA;KAEA,2BAA2B,KAE9B;EACE,mBAAmB;EACnB,cAAc;EACd,YAAY;IAEV,wBAAwB,cAAc,QAAQ,SAC9C;EAAY,mBAAmB;EAAc,cAAc;IACzD,wBAAwB,cAAc,UACtC;EAAY,YAAY;EAAO,cAAc;IAC3C,iCAAiC,QAAQ,SAEzC,iBAAiB,oBAAoB,cAAc,SACjD,wBAAwB,cAAc,QAAQ,SAC9C,iBAAiB,oBAAoB,UACnC,wBAAwB,cAAc,UACtC,iBAAiB,gBACf,wBAAwB,gBAExB;EACI,UACI,oBAAoB,oBAAoB,aACxC;EACJ,UAAU,oBAAoB;EAC9B,eAAe,wBAAwB;IAEzC,wBACE,cACA,QACA,OACA,aAEF;EACI,UACI,oBAAoB,oBAAoB,aACxC;EACJ,eAAe,wBAAwB;IAEzC,wBACE,cACA,QACA,cACA,aAGF;KAEf,0BAA0B,KAE7B;EAAY;EAAkB,cAAc;EAAQ,YAAY;IAC5D,uBAAuB,OAAO,UAC9B;EAAY,mBAAmB;EAAc,cAAc;IACzD,uBAAuB,cAAc,UACrC;EAAY,YAAY;EAAO,cAAc;IAC3C,uBAAuB,OAAO,UAE9B,sBAAsB,cAAc,SAClC,uBAAuB,OAAO,UAC9B,iBAAiB,oBAAoB,UACnC,uBAAuB,cAAc,UACrC,iBAAiB,gBACf,uBAAuB,gBAEvB;EACI,UACI,oBAAoB,qBACpB;EACJ,UAAU,oBAAoB;EAC9B,eAAe,wBAAwB;IAEzC,uCACkB,QAAQ,eAAe,uBACvB,SAAS,eAAe,UAE1C;EACI,UACI,oBAAoB,qBACpB;EACJ,eAAe,wBAAwB;IAEzC,uBACE,8BACgB,SAAS,eAAe,UAG1C;;;;;;;;;;;;;;;;YAiBR,uBACV,UAAU,YACV,iBAAiB,iBACjB,eAAe,8BACb,yBAAyB,gBACzB,MAAM,2BACN,oBAEE,iBAAiB,YACX,UAAU,2BAA2B,SACzC,iBAAiB,eAAe,SAC9B,2BACM,YACA,UAAU,2BAA2B,YACrC,cAEN,uBAAuB,IACrB,IAGA,UAAU,MACN,8BACQ,oBACA,cACA,aACA,cAGV,MACE,wBAAwB,cAAc,QAAQ,OAAO,cAGvD,MAAM;;;;;;;;;;;;YAaR,uBACV,UAAU,YACV,iBAAiB,iBACjB,eAAe,8BACb,yBAAyB,gBACzB,MAAM,0BACN,oBAEE,iBAAiB,YACX,UAAU,0BAA0B,SACxC,iBAAiB,eAAe,SAC9B,2BACM,YACA,UAAU,0BAA0B,YACpC,iBAEH,WAAW,IAAI,0BAA0B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoKxC,mBACd,UAAU,YACV,kBAAkB,uBAAuB,IAEzC;;;;EAIE,sBACiB,uBAAuB,sBACpB,WAAW,IAAI,2BAA2B,EAAE;;;;;EAKhE,WAAW,QAAQ,uBAAuB,OAAO;GAEnD,cAAc,cACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuHa,mBACd,UAAU,YACV,kBAAkB,uBAAuB,IAEzC;;;;EAIE,sBAAsB,uBAAuB;;;;;EAK7C,WAAW,QAAQ,uBAAuB,OAAO;GAEnD,cAAc,cACb"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { defaultThrowOnError } from "./suspense.js";
|
|
3
3
|
import { useQueries } from "./useQueries.js";
|
|
4
4
|
import { skipToken } from "@tanstack/query-core";
|
|
5
|
-
|
|
5
|
+
// src/useSuspenseQueries.ts
|
|
6
6
|
function useSuspenseQueries(options, queryClient) {
|
|
7
7
|
return useQueries({
|
|
8
8
|
...options,
|
|
@@ -20,7 +20,6 @@ function useSuspenseQueries(options, queryClient) {
|
|
|
20
20
|
})
|
|
21
21
|
}, queryClient);
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { useSuspenseQueries };
|
|
25
24
|
|
|
26
25
|
//# sourceMappingURL=useSuspenseQueries.js.map
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const require_suspense = require("./suspense.cjs");
|
|
4
4
|
const require_useBaseQuery = require("./useBaseQuery.cjs");
|
|
5
5
|
let _tanstack_query_core = require("@tanstack/query-core");
|
|
6
|
-
|
|
6
|
+
// src/useSuspenseQuery.ts
|
|
7
7
|
/**
|
|
8
8
|
* The options for `useSuspenseQuery` are the same as for `useQuery`, except for `throwOnError`, `enabled`, and
|
|
9
9
|
* `placeholderData` — and `queryFn` may not be `skipToken`, since Suspense hooks can't render a "disabled" state.
|
|
@@ -81,7 +81,6 @@ function useSuspenseQuery(options, queryClient) {
|
|
|
81
81
|
placeholderData: void 0
|
|
82
82
|
}, _tanstack_query_core.QueryObserver, queryClient);
|
|
83
83
|
}
|
|
84
|
-
//#endregion
|
|
85
84
|
exports.useSuspenseQuery = useSuspenseQuery;
|
|
86
85
|
|
|
87
86
|
//# sourceMappingURL=useSuspenseQuery.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UseSuspenseQueryOptions, UseSuspenseQueryResult } from "./types.cjs";
|
|
2
2
|
import { DefaultError, QueryClient, QueryKey } from "@tanstack/query-core";
|
|
3
|
-
//#region src/useSuspenseQuery.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The options for `useSuspenseQuery` are the same as for `useQuery`, except for `throwOnError`, `enabled`, and
|
|
6
5
|
* `placeholderData` — and `queryFn` may not be `skipToken`, since Suspense hooks can't render a "disabled" state.
|
|
@@ -67,5 +66,4 @@ import { DefaultError, QueryClient, QueryKey } from "@tanstack/query-core";
|
|
|
67
66
|
* ```
|
|
68
67
|
*/
|
|
69
68
|
export declare function useSuspenseQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError>;
|
|
70
|
-
//#endregion
|
|
71
69
|
//# sourceMappingURL=useSuspenseQuery.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSuspenseQuery.d.cts","names":[],"sources":["../../src/useSuspenseQuery.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSuspenseQuery.d.cts","names":[],"sources":["../../src/useSuspenseQuery.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwEgB,iBACd,wBACA,SAAS,cACT,QAAQ,cACR,kBAAkB,WAAW,UAE7B,SAAS,wBAAwB,cAAc,QAAQ,OAAO,YAC9D,cAAc,cACb,uBAAuB,OAAO"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UseSuspenseQueryOptions, UseSuspenseQueryResult } from "./types.js";
|
|
2
2
|
import { DefaultError, QueryClient, QueryKey } from "@tanstack/query-core";
|
|
3
|
-
//#region src/useSuspenseQuery.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The options for `useSuspenseQuery` are the same as for `useQuery`, except for `throwOnError`, `enabled`, and
|
|
6
5
|
* `placeholderData` — and `queryFn` may not be `skipToken`, since Suspense hooks can't render a "disabled" state.
|
|
@@ -67,5 +66,4 @@ import { DefaultError, QueryClient, QueryKey } from "@tanstack/query-core";
|
|
|
67
66
|
* ```
|
|
68
67
|
*/
|
|
69
68
|
export declare function useSuspenseQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError>;
|
|
70
|
-
//#endregion
|
|
71
69
|
//# sourceMappingURL=useSuspenseQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSuspenseQuery.d.ts","names":[],"sources":["../../src/useSuspenseQuery.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSuspenseQuery.d.ts","names":[],"sources":["../../src/useSuspenseQuery.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwEgB,iBACd,wBACA,SAAS,cACT,QAAQ,cACR,kBAAkB,WAAW,UAE7B,SAAS,wBAAwB,cAAc,QAAQ,OAAO,YAC9D,cAAc,cACb,uBAAuB,OAAO"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { defaultThrowOnError } from "./suspense.js";
|
|
3
3
|
import { useBaseQuery } from "./useBaseQuery.js";
|
|
4
4
|
import { QueryObserver, skipToken } from "@tanstack/query-core";
|
|
5
|
-
|
|
5
|
+
// src/useSuspenseQuery.ts
|
|
6
6
|
/**
|
|
7
7
|
* The options for `useSuspenseQuery` are the same as for `useQuery`, except for `throwOnError`, `enabled`, and
|
|
8
8
|
* `placeholderData` — and `queryFn` may not be `skipToken`, since Suspense hooks can't render a "disabled" state.
|
|
@@ -80,7 +80,6 @@ function useSuspenseQuery(options, queryClient) {
|
|
|
80
80
|
placeholderData: void 0
|
|
81
81
|
}, QueryObserver, queryClient);
|
|
82
82
|
}
|
|
83
|
-
//#endregion
|
|
84
83
|
export { useSuspenseQuery };
|
|
85
84
|
|
|
86
85
|
//# sourceMappingURL=useSuspenseQuery.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
3
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
|
|
4
4
|
const require_QueryClientProvider = require("./QueryClientProvider.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
7
7
|
let _tanstack_query_core = require("@tanstack/query-core");
|
|
8
|
-
|
|
8
|
+
// src/HydrationBoundary.tsx
|
|
9
9
|
/**
|
|
10
10
|
* `HydrationBoundary` adds a previously dehydrated state into the `queryClient` that would be returned by
|
|
11
11
|
* `useQueryClient()`. If the client already contains data, the new queries will be intelligently merged based on
|
|
@@ -75,7 +75,6 @@ const HydrationBoundary = ({ children, options = {}, state, queryClient }) => {
|
|
|
75
75
|
}, [client, hydrationQueue]);
|
|
76
76
|
return children;
|
|
77
77
|
};
|
|
78
|
-
//#endregion
|
|
79
78
|
exports.HydrationBoundary = HydrationBoundary;
|
|
80
79
|
|
|
81
80
|
//# sourceMappingURL=HydrationBoundary.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DehydratedState, HydrateOptions, OmitKeyof, QueryClient } from "@tanstack/query-core";
|
|
3
|
-
//#region src/HydrationBoundary.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The props accepted by `HydrationBoundary`.
|
|
6
5
|
*/
|
|
@@ -70,5 +69,4 @@ export interface HydrationBoundaryProps {
|
|
|
70
69
|
* ```
|
|
71
70
|
*/
|
|
72
71
|
export declare const HydrationBoundary: ({ children, options, state, queryClient }: HydrationBoundaryProps) => React.ReactElement;
|
|
73
|
-
//#endregion
|
|
74
72
|
//# sourceMappingURL=HydrationBoundary.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HydrationBoundary.d.cts","names":[],"sources":["../../src/HydrationBoundary.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"HydrationBoundary.d.cts","names":[],"sources":["../../src/HydrationBoundary.tsx"],"mappings":";;;;;iBAeiB;;;;EAIf,OAAO;;;;EAIP,UAAU,UAAU;IAClB,iBAAiB,UACf,QAAQ;;;;;;;;EAUZ,WAAW,MAAM;;;;EAIjB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6CH,sBAAqB,UAAA,SAAA,OAAA,eAK/B,2BA+EkB,MAAM"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DehydratedState, HydrateOptions, OmitKeyof, QueryClient } from "@tanstack/query-core";
|
|
3
|
-
//#region src/HydrationBoundary.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The props accepted by `HydrationBoundary`.
|
|
6
5
|
*/
|
|
@@ -70,5 +69,4 @@ export interface HydrationBoundaryProps {
|
|
|
70
69
|
* ```
|
|
71
70
|
*/
|
|
72
71
|
export declare const HydrationBoundary: ({ children, options, state, queryClient }: HydrationBoundaryProps) => React.ReactElement;
|
|
73
|
-
//#endregion
|
|
74
72
|
//# sourceMappingURL=HydrationBoundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HydrationBoundary.d.ts","names":[],"sources":["../../src/HydrationBoundary.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"HydrationBoundary.d.ts","names":[],"sources":["../../src/HydrationBoundary.tsx"],"mappings":";;;;;iBAeiB;;;;EAIf,OAAO;;;;EAIP,UAAU,UAAU;IAClB,iBAAiB,UACf,QAAQ;;;;;;;;EAUZ,WAAW,MAAM;;;;EAIjB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6CH,sBAAqB,UAAA,SAAA,OAAA,eAK/B,2BA+EkB,MAAM"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useQueryClient } from "./QueryClientProvider.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { hydrate } from "@tanstack/query-core";
|
|
5
|
-
|
|
5
|
+
// src/HydrationBoundary.tsx
|
|
6
6
|
/**
|
|
7
7
|
* `HydrationBoundary` adds a previously dehydrated state into the `queryClient` that would be returned by
|
|
8
8
|
* `useQueryClient()`. If the client already contains data, the new queries will be intelligently merged based on
|
|
@@ -72,7 +72,6 @@ const HydrationBoundary = ({ children, options = {}, state, queryClient }) => {
|
|
|
72
72
|
}, [client, hydrationQueue]);
|
|
73
73
|
return children;
|
|
74
74
|
};
|
|
75
|
-
//#endregion
|
|
76
75
|
export { HydrationBoundary };
|
|
77
76
|
|
|
78
77
|
//# sourceMappingURL=HydrationBoundary.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
3
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
6
|
-
|
|
6
|
+
// src/IsRestoringProvider.ts
|
|
7
7
|
const IsRestoringContext = react.createContext(false);
|
|
8
8
|
/**
|
|
9
9
|
* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
|
|
@@ -17,7 +17,6 @@ const useIsRestoring = () => react.useContext(IsRestoringContext);
|
|
|
17
17
|
* being restored, read by `useIsRestoring`.
|
|
18
18
|
*/
|
|
19
19
|
const IsRestoringProvider = IsRestoringContext.Provider;
|
|
20
|
-
//#endregion
|
|
21
20
|
exports.IsRestoringProvider = IsRestoringProvider;
|
|
22
21
|
exports.useIsRestoring = useIsRestoring;
|
|
23
22
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
//#region src/IsRestoringProvider.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
|
|
5
4
|
* check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid
|
|
@@ -12,5 +11,4 @@ export declare const useIsRestoring: () => boolean;
|
|
|
12
11
|
* being restored, read by `useIsRestoring`.
|
|
13
12
|
*/
|
|
14
13
|
export declare const IsRestoringProvider: React.Provider<boolean>;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=IsRestoringProvider.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsRestoringProvider.d.cts","names":[],"sources":["../../src/IsRestoringProvider.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"IsRestoringProvider.d.cts","names":[],"sources":["../../src/IsRestoringProvider.ts"],"mappings":";;;;;;;qBAWa;;;;;qBAMA,qBAAmB,MAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
//#region src/IsRestoringProvider.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
|
|
5
4
|
* check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid
|
|
@@ -12,5 +11,4 @@ export declare const useIsRestoring: () => boolean;
|
|
|
12
11
|
* being restored, read by `useIsRestoring`.
|
|
13
12
|
*/
|
|
14
13
|
export declare const IsRestoringProvider: React.Provider<boolean>;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=IsRestoringProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsRestoringProvider.d.ts","names":[],"sources":["../../src/IsRestoringProvider.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"IsRestoringProvider.d.ts","names":[],"sources":["../../src/IsRestoringProvider.ts"],"mappings":";;;;;;;qBAWa;;;;;qBAMA,qBAAmB,MAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
|
|
3
|
+
// src/IsRestoringProvider.ts
|
|
4
4
|
const IsRestoringContext = React.createContext(false);
|
|
5
5
|
/**
|
|
6
6
|
* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
|
|
@@ -14,7 +14,6 @@ const useIsRestoring = () => React.useContext(IsRestoringContext);
|
|
|
14
14
|
* being restored, read by `useIsRestoring`.
|
|
15
15
|
*/
|
|
16
16
|
const IsRestoringProvider = IsRestoringContext.Provider;
|
|
17
|
-
//#endregion
|
|
18
17
|
export { IsRestoringProvider, useIsRestoring };
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=IsRestoringProvider.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
3
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
|
|
7
|
+
// src/QueryClientProvider.tsx
|
|
8
8
|
/**
|
|
9
9
|
* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.
|
|
10
10
|
*/
|
|
@@ -53,7 +53,6 @@ const QueryClientProvider = ({ client, children }) => {
|
|
|
53
53
|
children
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
|
-
//#endregion
|
|
57
56
|
exports.QueryClientContext = QueryClientContext;
|
|
58
57
|
exports.QueryClientProvider = QueryClientProvider;
|
|
59
58
|
exports.useQueryClient = useQueryClient;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { QueryClient } from "@tanstack/query-core";
|
|
3
|
-
//#region src/QueryClientProvider.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.
|
|
6
5
|
*/
|
|
@@ -48,5 +47,4 @@ export type QueryClientProviderProps = {
|
|
|
48
47
|
* ```
|
|
49
48
|
*/
|
|
50
49
|
export declare const QueryClientProvider: ({ client, children }: QueryClientProviderProps) => React.JSX.Element;
|
|
51
|
-
//#endregion
|
|
52
50
|
//# sourceMappingURL=QueryClientProvider.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryClientProvider.d.cts","names":[],"sources":["../../src/QueryClientProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueryClientProvider.d.cts","names":[],"sources":["../../src/QueryClientProvider.tsx"],"mappings":";;;;;qBAQa,oBAAkB,MAAA,QAAA;;;;;;;;;qBAYlB,iBAAkB,cAAc,gBAAW;;;;YAiB5C;;;;;;EAMV,QAAQ;;;;EAIR,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;qBAqBN,wBAAuB,QAAA,YAGjC,6BAA2B,MAAM,IAAI"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { QueryClient } from "@tanstack/query-core";
|
|
3
|
-
//#region src/QueryClientProvider.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.
|
|
6
5
|
*/
|
|
@@ -48,5 +47,4 @@ export type QueryClientProviderProps = {
|
|
|
48
47
|
* ```
|
|
49
48
|
*/
|
|
50
49
|
export declare const QueryClientProvider: ({ client, children }: QueryClientProviderProps) => React.JSX.Element;
|
|
51
|
-
//#endregion
|
|
52
50
|
//# sourceMappingURL=QueryClientProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryClientProvider.d.ts","names":[],"sources":["../../src/QueryClientProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueryClientProvider.d.ts","names":[],"sources":["../../src/QueryClientProvider.tsx"],"mappings":";;;;;qBAQa,oBAAkB,MAAA,QAAA;;;;;;;;;qBAYlB,iBAAkB,cAAc,gBAAW;;;;YAiB5C;;;;;;EAMV,QAAQ;;;;EAIR,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;qBAqBN,wBAAuB,QAAA,YAGjC,6BAA2B,MAAM,IAAI"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/QueryClientProvider.tsx
|
|
5
5
|
/**
|
|
6
6
|
* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.
|
|
7
7
|
*/
|
|
@@ -50,7 +50,6 @@ const QueryClientProvider = ({ client, children }) => {
|
|
|
50
50
|
children
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
//#endregion
|
|
54
53
|
export { QueryClientContext, QueryClientProvider, useQueryClient };
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=QueryClientProvider.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
3
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
|
|
7
|
+
// src/QueryErrorResetBoundary.tsx
|
|
8
8
|
/**
|
|
9
9
|
* Creates the value shared through the boundary's context, which tracks whether a reset was
|
|
10
10
|
* requested.
|
|
@@ -104,7 +104,6 @@ const QueryErrorResetBoundary = ({ children }) => {
|
|
|
104
104
|
children: typeof children === "function" ? children(value) : children
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
//#endregion
|
|
108
107
|
exports.QueryErrorResetBoundary = QueryErrorResetBoundary;
|
|
109
108
|
exports.useQueryErrorResetBoundary = useQueryErrorResetBoundary;
|
|
110
109
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
//#region src/QueryErrorResetBoundary.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Resets any query errors within the boundary, so queries know they can try again.
|
|
5
4
|
*/
|
|
@@ -108,6 +107,5 @@ export interface QueryErrorResetBoundaryProps {
|
|
|
108
107
|
* }
|
|
109
108
|
* ```
|
|
110
109
|
*/
|
|
111
|
-
export declare const QueryErrorResetBoundary: ({ children }: QueryErrorResetBoundaryProps) =>
|
|
112
|
-
//#endregion
|
|
110
|
+
export declare const QueryErrorResetBoundary: ({ children }: QueryErrorResetBoundaryProps) => React.JSX.Element;
|
|
113
111
|
//# sourceMappingURL=QueryErrorResetBoundary.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryErrorResetBoundary.d.cts","names":[],"sources":["../../src/QueryErrorResetBoundary.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueryErrorResetBoundary.d.cts","names":[],"sources":["../../src/QueryErrorResetBoundary.tsx"],"mappings":";;;;YAQY;;;;YAKA;;;;YAKA;;;;;iBAMK;;;;EAIf,YAAY;;;;EAIZ,SAAS;;;;EAIT,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiEI,kCAA0B;;;;;;YAU3B,mCACV,OAAO,iCACJ,MAAM;;;;iBAKM;;;;;EAKf,UAAU,kCAAkC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoCvC,4BAA2B,YAErC,iCAA4B,MAAA,IAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
//#region src/QueryErrorResetBoundary.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Resets any query errors within the boundary, so queries know they can try again.
|
|
5
4
|
*/
|
|
@@ -108,6 +107,5 @@ export interface QueryErrorResetBoundaryProps {
|
|
|
108
107
|
* }
|
|
109
108
|
* ```
|
|
110
109
|
*/
|
|
111
|
-
export declare const QueryErrorResetBoundary: ({ children }: QueryErrorResetBoundaryProps) =>
|
|
112
|
-
//#endregion
|
|
110
|
+
export declare const QueryErrorResetBoundary: ({ children }: QueryErrorResetBoundaryProps) => React.JSX.Element;
|
|
113
111
|
//# sourceMappingURL=QueryErrorResetBoundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryErrorResetBoundary.d.ts","names":[],"sources":["../../src/QueryErrorResetBoundary.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"QueryErrorResetBoundary.d.ts","names":[],"sources":["../../src/QueryErrorResetBoundary.tsx"],"mappings":";;;;YAQY;;;;YAKA;;;;YAKA;;;;;iBAMK;;;;EAIf,YAAY;;;;EAIZ,SAAS;;;;EAIT,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiEI,kCAA0B;;;;;;YAU3B,mCACV,OAAO,iCACJ,MAAM;;;;iBAKM;;;;;EAKf,UAAU,kCAAkC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoCvC,4BAA2B,YAErC,iCAA4B,MAAA,IAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/QueryErrorResetBoundary.tsx
|
|
5
5
|
/**
|
|
6
6
|
* Creates the value shared through the boundary's context, which tracks whether a reset was
|
|
7
7
|
* requested.
|
|
@@ -101,7 +101,6 @@ const QueryErrorResetBoundary = ({ children }) => {
|
|
|
101
101
|
children: typeof children === "function" ? children(value) : children
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
//#endregion
|
|
105
104
|
export { QueryErrorResetBoundary, useQueryErrorResetBoundary };
|
|
106
105
|
|
|
107
106
|
//# sourceMappingURL=QueryErrorResetBoundary.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
3
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
6
6
|
let _tanstack_query_core = require("@tanstack/query-core");
|
|
7
|
-
|
|
7
|
+
// src/errorBoundaryUtils.ts
|
|
8
8
|
/**
|
|
9
9
|
* Turns off `retryOnMount` for a query that throws its errors (with `suspense` or `throwOnError`),
|
|
10
10
|
* unless the error boundary has been reset, so a remount doesn't retry the failed query before the
|
|
@@ -40,7 +40,6 @@ const useClearResetErrorBoundary = (errorResetBoundary) => {
|
|
|
40
40
|
const getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }) => {
|
|
41
41
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || (0, _tanstack_query_core.shouldThrowError)(throwOnError, [result.error, query]));
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
exports.ensurePreventErrorBoundaryRetry = ensurePreventErrorBoundaryRetry;
|
|
45
44
|
exports.getHasError = getHasError;
|
|
46
45
|
exports.useClearResetErrorBoundary = useClearResetErrorBoundary;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { QueryErrorResetBoundaryValue } from "./QueryErrorResetBoundary.cjs";
|
|
2
2
|
import { DefaultedQueryObserverOptions, Query, QueryKey, QueryObserverResult, ThrowOnError } from "@tanstack/query-core";
|
|
3
|
-
//#region src/errorBoundaryUtils.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Turns off `retryOnMount` for a query that throws its errors (with `suspense` or `throwOnError`),
|
|
6
5
|
* unless the error boundary has been reset, so a remount doesn't retry the failed query before the
|
|
@@ -31,5 +30,4 @@ export declare const getHasError: <TData, TError, TQueryFnData, TQueryData, TQue
|
|
|
31
30
|
query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined;
|
|
32
31
|
suspense: boolean | undefined;
|
|
33
32
|
}) => boolean | undefined;
|
|
34
|
-
//#endregion
|
|
35
33
|
//# sourceMappingURL=errorBoundaryUtils.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorBoundaryUtils.d.cts","names":[],"sources":["../../src/errorBoundaryUtils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"errorBoundaryUtils.d.cts","names":[],"sources":["../../src/errorBoundaryUtils.ts"],"mappings":";;;;;;;;;;qBAoBa,kCACX,cACA,QACA,OACA,YACA,kBAAkB,UAElB,SAAS,8BACP,cACA,QACA,OACA,YACA,YAEF,oBAAoB,8BACpB,OAAO,MAAM,cAAc,QAAQ,YAAY;;;;;;qBAwBpC,6BACX,oBAAoB;;;;;;;;;qBAeT,cACX,OACA,QACA,cACA,YACA,kBAAkB,YAClB,QAAA,oBAAA,cAAA,OAAA;EAOA,QAAQ,oBAAoB,OAAO;EACnC,oBAAoB;EACpB,cAAc,aAAa,cAAc,QAAQ,YAAY;EAC7D,OAAO,MAAM,cAAc,QAAQ,YAAY;EAC/C"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { QueryErrorResetBoundaryValue } from "./QueryErrorResetBoundary.js";
|
|
2
2
|
import { DefaultedQueryObserverOptions, Query, QueryKey, QueryObserverResult, ThrowOnError } from "@tanstack/query-core";
|
|
3
|
-
//#region src/errorBoundaryUtils.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Turns off `retryOnMount` for a query that throws its errors (with `suspense` or `throwOnError`),
|
|
6
5
|
* unless the error boundary has been reset, so a remount doesn't retry the failed query before the
|
|
@@ -31,5 +30,4 @@ export declare const getHasError: <TData, TError, TQueryFnData, TQueryData, TQue
|
|
|
31
30
|
query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined;
|
|
32
31
|
suspense: boolean | undefined;
|
|
33
32
|
}) => boolean | undefined;
|
|
34
|
-
//#endregion
|
|
35
33
|
//# sourceMappingURL=errorBoundaryUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorBoundaryUtils.d.ts","names":[],"sources":["../../src/errorBoundaryUtils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"errorBoundaryUtils.d.ts","names":[],"sources":["../../src/errorBoundaryUtils.ts"],"mappings":";;;;;;;;;;qBAoBa,kCACX,cACA,QACA,OACA,YACA,kBAAkB,UAElB,SAAS,8BACP,cACA,QACA,OACA,YACA,YAEF,oBAAoB,8BACpB,OAAO,MAAM,cAAc,QAAQ,YAAY;;;;;;qBAwBpC,6BACX,oBAAoB;;;;;;;;;qBAeT,cACX,OACA,QACA,cACA,YACA,kBAAkB,YAClB,QAAA,oBAAA,cAAA,OAAA;EAOA,QAAQ,oBAAoB,OAAO;EACnC,oBAAoB;EACpB,cAAc,aAAa,cAAc,QAAQ,YAAY;EAC7D,OAAO,MAAM,cAAc,QAAQ,YAAY;EAC/C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { shouldThrowError } from "@tanstack/query-core";
|
|
4
|
-
|
|
4
|
+
// src/errorBoundaryUtils.ts
|
|
5
5
|
/**
|
|
6
6
|
* Turns off `retryOnMount` for a query that throws its errors (with `suspense` or `throwOnError`),
|
|
7
7
|
* unless the error boundary has been reset, so a remount doesn't retry the failed query before the
|
|
@@ -37,7 +37,6 @@ const useClearResetErrorBoundary = (errorResetBoundary) => {
|
|
|
37
37
|
const getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }) => {
|
|
38
38
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
export { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary };
|
|
42
41
|
|
|
43
42
|
//# sourceMappingURL=errorBoundaryUtils.js.map
|
package/build/modern/index.cjs
CHANGED
|
@@ -17,9 +17,8 @@ const require_useMutationState = require("./useMutationState.cjs");
|
|
|
17
17
|
const require_useMutation = require("./useMutation.cjs");
|
|
18
18
|
const require_mutationOptions = require("./mutationOptions.cjs");
|
|
19
19
|
const require_useInfiniteQuery = require("./useInfiniteQuery.cjs");
|
|
20
|
-
|
|
20
|
+
// src/index.ts
|
|
21
21
|
/* istanbul ignore file */
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.HydrationBoundary = require_HydrationBoundary.HydrationBoundary;
|
|
24
23
|
exports.IsRestoringProvider = require_IsRestoringProvider.IsRestoringProvider;
|
|
25
24
|
exports.QueryClientContext = require_QueryClientProvider.QueryClientContext;
|
package/build/modern/index.js
CHANGED
|
@@ -17,9 +17,8 @@ import { useMutation } from "./useMutation.js";
|
|
|
17
17
|
import { mutationOptions } from "./mutationOptions.js";
|
|
18
18
|
import { useInfiniteQuery } from "./useInfiniteQuery.js";
|
|
19
19
|
export * from "@tanstack/query-core";
|
|
20
|
-
|
|
20
|
+
// src/index.ts
|
|
21
21
|
/* istanbul ignore file */
|
|
22
|
-
//#endregion
|
|
23
22
|
export { HydrationBoundary, IsRestoringProvider, QueryClientContext, QueryClientProvider, QueryErrorResetBoundary, infiniteQueryOptions, mutationOptions, queryOptions, useInfiniteQuery, useIsFetching, useIsMutating, useIsRestoring, useMutation, useMutationState, usePrefetchInfiniteQuery, usePrefetchQuery, useQueries, useQuery, useQueryClient, useQueryErrorResetBoundary, useSuspenseInfiniteQuery, useSuspenseQueries, useSuspenseQuery };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/infiniteQueryOptions.ts
|
|
3
3
|
function infiniteQueryOptions(options) {
|
|
4
4
|
return options;
|
|
5
5
|
}
|
|
6
|
-
//#endregion
|
|
7
6
|
exports.infiniteQueryOptions = infiniteQueryOptions;
|
|
8
7
|
|
|
9
8
|
//# sourceMappingURL=infiniteQueryOptions.cjs.map
|