@tanstack/preact-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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/build/legacy/QueryErrorResetBoundary.d.cts +0 -2
- package/build/legacy/QueryErrorResetBoundary.d.cts.map +1 -1
- package/build/legacy/QueryErrorResetBoundary.d.ts +0 -2
- package/build/legacy/QueryErrorResetBoundary.d.ts.map +1 -1
- package/build/legacy/QueryErrorResetBoundary.js +1 -2
- package/build/legacy/errorBoundaryUtils.cjs +1 -2
- 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/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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/legacy/utils.cjs +1 -2
- package/build/legacy/utils.d.cts +0 -2
- package/build/legacy/utils.d.cts.map +1 -1
- package/build/legacy/utils.d.ts +0 -2
- package/build/legacy/utils.d.ts.map +1 -1
- package/build/legacy/utils.js +1 -2
- package/build/modern/HydrationBoundary.cjs +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/build/modern/QueryErrorResetBoundary.d.cts +0 -2
- package/build/modern/QueryErrorResetBoundary.d.cts.map +1 -1
- package/build/modern/QueryErrorResetBoundary.d.ts +0 -2
- package/build/modern/QueryErrorResetBoundary.d.ts.map +1 -1
- package/build/modern/QueryErrorResetBoundary.js +1 -2
- package/build/modern/errorBoundaryUtils.cjs +1 -2
- 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/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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- 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/build/modern/utils.cjs +1 -2
- package/build/modern/utils.d.cts +0 -2
- package/build/modern/utils.d.cts.map +1 -1
- package/build/modern/utils.d.ts +0 -2
- package/build/modern/utils.d.ts.map +1 -1
- package/build/modern/utils.js +1 -2
- package/package.json +3 -3
- 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
|
@@ -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 {
|
|
@@ -468,5 +467,4 @@ export declare function useSuspenseQueries<T extends Array<any>, TCombinedResult
|
|
|
468
467
|
*/
|
|
469
468
|
combine?: (result: SuspenseQueriesResults<T>) => TCombinedResult;
|
|
470
469
|
}, queryClient?: QueryClient): TCombinedResult;
|
|
471
|
-
//#endregion
|
|
472
470
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgOxC,mBACd,UAAU,YACV,kBAAkB,uBAAuB,IAEzC;;;;EAIE,sBACiB,uBAAuB,sBACpB,WAAW,IAAI,2BAA2B,EAAE;;;;;EAKhE,WAAW,QAAQ,uBAAuB,OAAO;GAEnD,cAAc,cACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA+Ja,mBACd,UAAU,YACV,kBAAkB,uBAAuB,IAEzC;;;;EAIE,sBAAsB,uBAAuB;;;;;EAK7C,WAAW,QAAQ,uBAAuB,OAAO;GAEnD,cAAc,cACb"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultThrowOnError } from "./suspense.js";
|
|
2
2
|
import { useQueries } from "./useQueries.js";
|
|
3
3
|
import { skipToken } from "@tanstack/query-core";
|
|
4
|
-
|
|
4
|
+
// src/useSuspenseQueries.ts
|
|
5
5
|
function useSuspenseQueries(options, queryClient) {
|
|
6
6
|
return useQueries({
|
|
7
7
|
...options,
|
|
@@ -19,7 +19,6 @@ function useSuspenseQueries(options, queryClient) {
|
|
|
19
19
|
})
|
|
20
20
|
}, queryClient);
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { useSuspenseQueries };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=useSuspenseQueries.js.map
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_suspense = require("./suspense.cjs");
|
|
3
3
|
const require_useBaseQuery = require("./useBaseQuery.cjs");
|
|
4
4
|
let _tanstack_query_core = require("@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`.
|
|
@@ -100,7 +100,6 @@ function useSuspenseQuery(options, queryClient) {
|
|
|
100
100
|
placeholderData: void 0
|
|
101
101
|
}, _tanstack_query_core.QueryObserver, queryClient);
|
|
102
102
|
}
|
|
103
|
-
//#endregion
|
|
104
103
|
exports.useSuspenseQuery = useSuspenseQuery;
|
|
105
104
|
|
|
106
105
|
//# 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`.
|
|
@@ -87,5 +86,4 @@ import { DefaultError, QueryClient, QueryKey } from "@tanstack/query-core";
|
|
|
87
86
|
* ```
|
|
88
87
|
*/
|
|
89
88
|
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>;
|
|
90
|
-
//#endregion
|
|
91
89
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4FgB,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`.
|
|
@@ -87,5 +86,4 @@ import { DefaultError, QueryClient, QueryKey } from "@tanstack/query-core";
|
|
|
87
86
|
* ```
|
|
88
87
|
*/
|
|
89
88
|
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>;
|
|
90
|
-
//#endregion
|
|
91
89
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4FgB,iBACd,wBACA,SAAS,cACT,QAAQ,cACR,kBAAkB,WAAW,UAE7B,SAAS,wBAAwB,cAAc,QAAQ,OAAO,YAC9D,cAAc,cACb,uBAAuB,OAAO"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultThrowOnError } from "./suspense.js";
|
|
2
2
|
import { useBaseQuery } from "./useBaseQuery.js";
|
|
3
3
|
import { QueryObserver, skipToken } from "@tanstack/query-core";
|
|
4
|
-
|
|
4
|
+
// src/useSuspenseQuery.ts
|
|
5
5
|
/**
|
|
6
6
|
* The options for `useSuspenseQuery` are the same as for `useQuery`, except for `throwOnError`, `enabled`, and
|
|
7
7
|
* `placeholderData`.
|
|
@@ -99,7 +99,6 @@ function useSuspenseQuery(options, queryClient) {
|
|
|
99
99
|
placeholderData: void 0
|
|
100
100
|
}, QueryObserver, queryClient);
|
|
101
101
|
}
|
|
102
|
-
//#endregion
|
|
103
102
|
export { useSuspenseQuery };
|
|
104
103
|
|
|
105
104
|
//# sourceMappingURL=useSuspenseQuery.js.map
|
package/build/legacy/utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let preact_hooks = require("preact/hooks");
|
|
3
|
-
|
|
3
|
+
// src/utils.ts
|
|
4
4
|
/**
|
|
5
5
|
* Subscribes to an external store and returns its current snapshot, re-rendering when it changes.
|
|
6
6
|
* @param subscribe - Subscribes to the store, and returns a function that unsubscribes.
|
|
@@ -63,7 +63,6 @@ function useSyncExternalStoreWithSelector(subscribe, getSnapshot, selector, isEq
|
|
|
63
63
|
};
|
|
64
64
|
return useSyncExternalStore(subscribe, getSelectedSnapshot);
|
|
65
65
|
}
|
|
66
|
-
//#endregion
|
|
67
66
|
exports.useSyncExternalStore = useSyncExternalStore;
|
|
68
67
|
exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector;
|
|
69
68
|
|
package/build/legacy/utils.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Subscribes to an external store and returns its current snapshot, re-rendering when it changes.
|
|
4
3
|
* @param subscribe - Subscribes to the store, and returns a function that unsubscribes.
|
|
@@ -16,5 +15,4 @@ export declare function useSyncExternalStore(subscribe: (onStoreChange: () => vo
|
|
|
16
15
|
* @returns The selected part of the current snapshot.
|
|
17
16
|
*/
|
|
18
17
|
export declare function useSyncExternalStoreWithSelector<TSnapshot, TSelected>(subscribe: (onStoreChange: () => void) => () => void, getSnapshot: () => TSnapshot, selector: (snapshot: TSnapshot) => TSelected, isEqual: (a: TSelected, b: TSelected) => boolean): TSelected;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=utils.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/utils.ts"],"mappings":";;;;;;wBAqBgB,qBACd,YAAY,0CACZ;;;;;;;;;;wBA8Dc,iCAAiC,WAAW,WAC1D,YAAY,0CACZ,mBAAmB,WACnB,WAAW,UAAU,cAAc,WACnC,UAAU,GAAG,WAAW,GAAG,wBAC1B"}
|
package/build/legacy/utils.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Subscribes to an external store and returns its current snapshot, re-rendering when it changes.
|
|
4
3
|
* @param subscribe - Subscribes to the store, and returns a function that unsubscribes.
|
|
@@ -16,5 +15,4 @@ export declare function useSyncExternalStore(subscribe: (onStoreChange: () => vo
|
|
|
16
15
|
* @returns The selected part of the current snapshot.
|
|
17
16
|
*/
|
|
18
17
|
export declare function useSyncExternalStoreWithSelector<TSnapshot, TSelected>(subscribe: (onStoreChange: () => void) => () => void, getSnapshot: () => TSnapshot, selector: (snapshot: TSnapshot) => TSelected, isEqual: (a: TSelected, b: TSelected) => boolean): TSelected;
|
|
19
|
-
//#endregion
|
|
20
18
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":";;;;;;wBAqBgB,qBACd,YAAY,0CACZ;;;;;;;;;;wBA8Dc,iCAAiC,WAAW,WAC1D,YAAY,0CACZ,mBAAmB,WACnB,WAAW,UAAU,cAAc,WACnC,UAAU,GAAG,WAAW,GAAG,wBAC1B"}
|
package/build/legacy/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useLayoutEffect, useRef, useState } from "preact/hooks";
|
|
2
|
-
|
|
2
|
+
// src/utils.ts
|
|
3
3
|
/**
|
|
4
4
|
* Subscribes to an external store and returns its current snapshot, re-rendering when it changes.
|
|
5
5
|
* @param subscribe - Subscribes to the store, and returns a function that unsubscribes.
|
|
@@ -62,7 +62,6 @@ function useSyncExternalStoreWithSelector(subscribe, getSnapshot, selector, isEq
|
|
|
62
62
|
};
|
|
63
63
|
return useSyncExternalStore(subscribe, getSelectedSnapshot);
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { useSyncExternalStore, useSyncExternalStoreWithSelector };
|
|
67
66
|
|
|
68
67
|
//# sourceMappingURL=utils.js.map
|
|
@@ -4,7 +4,7 @@ let _tanstack_query_core = require("@tanstack/query-core");
|
|
|
4
4
|
let preact = require("preact");
|
|
5
5
|
let preact_hooks = require("preact/hooks");
|
|
6
6
|
let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
7
|
-
|
|
7
|
+
// src/HydrationBoundary.tsx
|
|
8
8
|
/**
|
|
9
9
|
* `HydrationBoundary` adds a previously dehydrated state into the `queryClient` that would be returned by
|
|
10
10
|
* `useQueryClient()`. If the client already contains data, the new queries will be intelligently merged based on
|
|
@@ -74,7 +74,6 @@ const HydrationBoundary = ({ children, options = {}, state, queryClient }) => {
|
|
|
74
74
|
}, [client, hydrationQueue]);
|
|
75
75
|
return /* @__PURE__ */ (0, preact_jsx_runtime.jsx)(preact.Fragment, { children });
|
|
76
76
|
};
|
|
77
|
-
//#endregion
|
|
78
77
|
exports.HydrationBoundary = HydrationBoundary;
|
|
79
78
|
|
|
80
79
|
//# sourceMappingURL=HydrationBoundary.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentChildren } from "preact";
|
|
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) => import("preact").JSX.Element;
|
|
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":";;;;;iBAgBiB;;;;EAIf,OAAO;;;;EAIP,UAAU,UAAU;IAClB,iBAAiB,UACf,QAAQ;;;;;;;;EAUZ,WAAW;;;;EAIX,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6CH,sBAAqB,UAAA,SAAA,OAAA,eAK/B,4CAAsB,IAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DehydratedState, HydrateOptions, OmitKeyof, QueryClient } from "@tanstack/query-core";
|
|
2
2
|
import { ComponentChildren } from "preact";
|
|
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) => import("preact").JSX.Element;
|
|
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":";;;;;iBAgBiB;;;;EAIf,OAAO;;;;EAIP,UAAU,UAAU;IAClB,iBAAiB,UACf,QAAQ;;;;;;;;EAUZ,WAAW;;;;EAIX,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6CH,sBAAqB,UAAA,SAAA,OAAA,eAK/B,4CAAsB,IAAA"}
|
|
@@ -3,7 +3,7 @@ import { hydrate } from "@tanstack/query-core";
|
|
|
3
3
|
import { Fragment } from "preact";
|
|
4
4
|
import { useEffect, useMemo, useRef } from "preact/hooks";
|
|
5
5
|
import { jsx } from "preact/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/HydrationBoundary.tsx
|
|
7
7
|
/**
|
|
8
8
|
* `HydrationBoundary` adds a previously dehydrated state into the `queryClient` that would be returned by
|
|
9
9
|
* `useQueryClient()`. If the client already contains data, the new queries will be intelligently merged based on
|
|
@@ -73,7 +73,6 @@ const HydrationBoundary = ({ children, options = {}, state, queryClient }) => {
|
|
|
73
73
|
}, [client, hydrationQueue]);
|
|
74
74
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
75
75
|
};
|
|
76
|
-
//#endregion
|
|
77
76
|
export { HydrationBoundary };
|
|
78
77
|
|
|
79
78
|
//# sourceMappingURL=HydrationBoundary.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let preact = require("preact");
|
|
3
3
|
let preact_hooks = require("preact/hooks");
|
|
4
|
-
|
|
4
|
+
// src/IsRestoringProvider.ts
|
|
5
5
|
const IsRestoringContext = (0, preact.createContext)(false);
|
|
6
6
|
/**
|
|
7
7
|
* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
|
|
@@ -15,7 +15,6 @@ const useIsRestoring = () => (0, preact_hooks.useContext)(IsRestoringContext);
|
|
|
15
15
|
* being restored, read by `useIsRestoring`.
|
|
16
16
|
*/
|
|
17
17
|
const IsRestoringProvider = IsRestoringContext.Provider;
|
|
18
|
-
//#endregion
|
|
19
18
|
exports.IsRestoringProvider = IsRestoringProvider;
|
|
20
19
|
exports.useIsRestoring = useIsRestoring;
|
|
21
20
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/IsRestoringProvider.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
|
|
4
3
|
* check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid
|
|
@@ -11,5 +10,4 @@ export declare const useIsRestoring: () => boolean;
|
|
|
11
10
|
* being restored, read by `useIsRestoring`.
|
|
12
11
|
*/
|
|
13
12
|
export declare const IsRestoringProvider: import("preact").Provider<boolean>;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# 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,sCAAmB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/IsRestoringProvider.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to
|
|
4
3
|
* check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid
|
|
@@ -11,5 +10,4 @@ export declare const useIsRestoring: () => boolean;
|
|
|
11
10
|
* being restored, read by `useIsRestoring`.
|
|
12
11
|
*/
|
|
13
12
|
export declare const IsRestoringProvider: import("preact").Provider<boolean>;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# 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,sCAAmB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext } from "preact";
|
|
2
2
|
import { useContext } from "preact/hooks";
|
|
3
|
-
|
|
3
|
+
// src/IsRestoringProvider.ts
|
|
4
4
|
const IsRestoringContext = 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 = () => 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
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
let preact = require("preact");
|
|
3
3
|
let preact_hooks = require("preact/hooks");
|
|
4
4
|
let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
5
|
-
|
|
5
|
+
// src/QueryClientProvider.tsx
|
|
6
6
|
/**
|
|
7
7
|
* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.
|
|
8
8
|
*/
|
|
@@ -51,7 +51,6 @@ const QueryClientProvider = ({ client, children }) => {
|
|
|
51
51
|
children
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
//#endregion
|
|
55
54
|
exports.QueryClientContext = QueryClientContext;
|
|
56
55
|
exports.QueryClientProvider = QueryClientProvider;
|
|
57
56
|
exports.useQueryClient = useQueryClient;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentChildren, VNode } from "preact";
|
|
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) => VNode;
|
|
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,qCAAkB,QAAA;;;;;;;;;qBAYlB,iBAAkB,cAAc,gBAAW;;;;YAiB5C;;;;;;EAMV,QAAQ;;;;EAIR,WAAW;;;;;;;;;;;;;;;;;;;;qBAqBA,wBAAuB,QAAA,YAGjC,6BAA2B"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { QueryClient } from "@tanstack/query-core";
|
|
2
2
|
import { ComponentChildren, VNode } from "preact";
|
|
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) => VNode;
|
|
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,qCAAkB,QAAA;;;;;;;;;qBAYlB,iBAAkB,cAAc,gBAAW;;;;YAiB5C;;;;;;EAMV,QAAQ;;;;EAIR,WAAW;;;;;;;;;;;;;;;;;;;;qBAqBA,wBAAuB,QAAA,YAGjC,6BAA2B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext } from "preact";
|
|
2
2
|
import { useContext, useEffect } from "preact/hooks";
|
|
3
3
|
import { jsx } from "preact/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
|
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
let preact = require("preact");
|
|
3
3
|
let preact_hooks = require("preact/hooks");
|
|
4
4
|
let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
5
|
-
|
|
5
|
+
// src/QueryErrorResetBoundary.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Creates the value shared through the boundary's context, which tracks whether a reset was
|
|
8
8
|
* requested.
|
|
@@ -105,7 +105,6 @@ const QueryErrorResetBoundary = ({ children }) => {
|
|
|
105
105
|
children: typeof children === "function" ? children(value) : children
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
//#endregion
|
|
109
108
|
exports.QueryErrorResetBoundary = QueryErrorResetBoundary;
|
|
110
109
|
exports.useQueryErrorResetBoundary = useQueryErrorResetBoundary;
|
|
111
110
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentChildren } from "preact";
|
|
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
|
*/
|
|
@@ -122,5 +121,4 @@ export interface QueryErrorResetBoundaryProps {
|
|
|
122
121
|
* ```
|
|
123
122
|
*/
|
|
124
123
|
export declare const QueryErrorResetBoundary: ({ children }: QueryErrorResetBoundaryProps) => import("preact").JSX.Element;
|
|
125
|
-
//#endregion
|
|
126
124
|
//# 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":";;;;YASY;;;;YAKA;;;;YAKA;;;;;iBAMK;;;;EAIf,YAAY;;;;EAIZ,SAAS;;;;EAIT,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAsDI,kCAA0B;;;;;;YAU3B,mCACV,OAAO,iCACJ;;;;iBAKY;;;;;EAKf,UAAU,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDjC,4BAA2B,YAErC,kDAA4B,IAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentChildren } from "preact";
|
|
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
|
*/
|
|
@@ -122,5 +121,4 @@ export interface QueryErrorResetBoundaryProps {
|
|
|
122
121
|
* ```
|
|
123
122
|
*/
|
|
124
123
|
export declare const QueryErrorResetBoundary: ({ children }: QueryErrorResetBoundaryProps) => import("preact").JSX.Element;
|
|
125
|
-
//#endregion
|
|
126
124
|
//# 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":";;;;YASY;;;;YAKA;;;;YAKA;;;;;iBAMK;;;;EAIf,YAAY;;;;EAIZ,SAAS;;;;EAIT,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAsDI,kCAA0B;;;;;;YAU3B,mCACV,OAAO,iCACJ;;;;iBAKY;;;;;EAKf,UAAU,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDjC,4BAA2B,YAErC,kDAA4B,IAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext } from "preact";
|
|
2
2
|
import { useContext, useState } from "preact/hooks";
|
|
3
3
|
import { jsx } from "preact/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.
|
|
@@ -104,7 +104,6 @@ const QueryErrorResetBoundary = ({ children }) => {
|
|
|
104
104
|
children: typeof children === "function" ? children(value) : children
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
//#endregion
|
|
108
107
|
export { QueryErrorResetBoundary, useQueryErrorResetBoundary };
|
|
109
108
|
|
|
110
109
|
//# sourceMappingURL=QueryErrorResetBoundary.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _tanstack_query_core = require("@tanstack/query-core");
|
|
3
3
|
let preact_hooks = require("preact/hooks");
|
|
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 || (0, _tanstack_query_core.shouldThrowError)(throwOnError, [result.error, query]));
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
exports.ensurePreventErrorBoundaryRetry = ensurePreventErrorBoundaryRetry;
|
|
42
41
|
exports.getHasError = getHasError;
|
|
43
42
|
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,6 +1,6 @@
|
|
|
1
1
|
import { shouldThrowError } from "@tanstack/query-core";
|
|
2
2
|
import { useEffect } from "preact/hooks";
|
|
3
|
-
|
|
3
|
+
// src/errorBoundaryUtils.ts
|
|
4
4
|
/**
|
|
5
5
|
* Turns off `retryOnMount` for a query that throws its errors (with `suspense` or `throwOnError`),
|
|
6
6
|
* unless the error boundary has been reset, so a remount doesn't retry the failed query before the
|
|
@@ -36,7 +36,6 @@ const useClearResetErrorBoundary = (errorResetBoundary) => {
|
|
|
36
36
|
const getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }) => {
|
|
37
37
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
38
38
|
};
|
|
39
|
-
//#endregion
|
|
40
39
|
export { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary };
|
|
41
40
|
|
|
42
41
|
//# 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
|