@suspensive/react-query-4 3.19.6 → 4.0.0-next.0
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/dist/ClientOnly-BSe1ROuK.cjs +20 -0
- package/dist/ClientOnly-BSe1ROuK.cjs.map +1 -0
- package/dist/ClientOnly-D2JpP9Ba.mjs +15 -0
- package/dist/ClientOnly-D2JpP9Ba.mjs.map +1 -0
- package/dist/IsFetching-BGIRMA6C.cjs +17 -0
- package/dist/IsFetching-BGIRMA6C.cjs.map +1 -0
- package/dist/IsFetching-CJrzs0ET.d.mts +16 -0
- package/dist/IsFetching-CJrzs0ET.d.mts.map +1 -0
- package/dist/IsFetching-Di9jXfRH.mjs +12 -0
- package/dist/IsFetching-Di9jXfRH.mjs.map +1 -0
- package/dist/IsFetching-FFvHWt5I.d.cts +16 -0
- package/dist/IsFetching-FFvHWt5I.d.cts.map +1 -0
- package/dist/IsFetching.cjs +2 -18
- package/dist/IsFetching.d.cts +2 -18
- package/dist/IsFetching.d.mts +2 -18
- package/dist/IsFetching.mjs +2 -17
- package/dist/Mutation-BWER242k.cjs +19 -0
- package/dist/Mutation-BWER242k.cjs.map +1 -0
- package/dist/Mutation-SB8NYSR4.mjs +14 -0
- package/dist/Mutation-SB8NYSR4.mjs.map +1 -0
- package/dist/Mutation-rhItOp02.d.cts +14 -0
- package/dist/Mutation-rhItOp02.d.cts.map +1 -0
- package/dist/Mutation-sfj_v5Fj.d.mts +14 -0
- package/dist/Mutation-sfj_v5Fj.d.mts.map +1 -0
- package/dist/Mutation.cjs +2 -14
- package/dist/Mutation.d.cts +2 -14
- package/dist/Mutation.d.mts +2 -14
- package/dist/Mutation.mjs +2 -13
- package/dist/PrefetchInfiniteQuery-BH6xERH5.mjs +20 -0
- package/dist/PrefetchInfiniteQuery-BH6xERH5.mjs.map +1 -0
- package/dist/PrefetchInfiniteQuery-Bf5JUe7U.cjs +25 -0
- package/dist/PrefetchInfiniteQuery-Bf5JUe7U.cjs.map +1 -0
- package/dist/PrefetchInfiniteQuery-CBl7Fblo.d.cts +17 -0
- package/dist/PrefetchInfiniteQuery-CBl7Fblo.d.cts.map +1 -0
- package/dist/PrefetchInfiniteQuery-CNNJphhx.d.mts +17 -0
- package/dist/PrefetchInfiniteQuery-CNNJphhx.d.mts.map +1 -0
- package/dist/PrefetchInfiniteQuery.cjs +2 -20
- package/dist/PrefetchInfiniteQuery.d.cts +2 -16
- package/dist/PrefetchInfiniteQuery.d.mts +2 -16
- package/dist/PrefetchInfiniteQuery.mjs +2 -19
- package/dist/PrefetchQuery-BmQt_WJk.d.mts +17 -0
- package/dist/PrefetchQuery-BmQt_WJk.d.mts.map +1 -0
- package/dist/PrefetchQuery-CqWzm0Tu.d.cts +17 -0
- package/dist/PrefetchQuery-CqWzm0Tu.d.cts.map +1 -0
- package/dist/PrefetchQuery-DQFTAE7M.mjs +20 -0
- package/dist/PrefetchQuery-DQFTAE7M.mjs.map +1 -0
- package/dist/PrefetchQuery-PBReP6tu.cjs +25 -0
- package/dist/PrefetchQuery-PBReP6tu.cjs.map +1 -0
- package/dist/PrefetchQuery.cjs +2 -20
- package/dist/PrefetchQuery.d.cts +2 -16
- package/dist/PrefetchQuery.d.mts +2 -16
- package/dist/PrefetchQuery.mjs +2 -19
- package/dist/QueriesHydration-B28Xmf0f.d.cts +106 -0
- package/dist/QueriesHydration-B28Xmf0f.d.cts.map +1 -0
- package/dist/QueriesHydration-CbLB0bKz.mjs +143 -0
- package/dist/QueriesHydration-CbLB0bKz.mjs.map +1 -0
- package/dist/QueriesHydration-Cd2lBXvZ.cjs +148 -0
- package/dist/QueriesHydration-Cd2lBXvZ.cjs.map +1 -0
- package/dist/QueriesHydration-D8Kdp7yq.d.mts +106 -0
- package/dist/QueriesHydration-D8Kdp7yq.d.mts.map +1 -0
- package/dist/QueriesHydration.cjs +2 -117
- package/dist/QueriesHydration.d.cts +2 -105
- package/dist/QueriesHydration.d.mts +2 -105
- package/dist/QueriesHydration.mjs +2 -116
- package/dist/QueryClientConsumer-B5vPlxA7.mjs +14 -0
- package/dist/QueryClientConsumer-B5vPlxA7.mjs.map +1 -0
- package/dist/QueryClientConsumer-COVqqi9y.d.cts +18 -0
- package/dist/QueryClientConsumer-COVqqi9y.d.cts.map +1 -0
- package/dist/QueryClientConsumer-CsNJXJGM.cjs +19 -0
- package/dist/QueryClientConsumer-CsNJXJGM.cjs.map +1 -0
- package/dist/QueryClientConsumer-YLHVJlTq.d.mts +18 -0
- package/dist/QueryClientConsumer-YLHVJlTq.d.mts.map +1 -0
- package/dist/QueryClientConsumer.cjs +2 -14
- package/dist/QueryClientConsumer.d.cts +2 -18
- package/dist/QueryClientConsumer.d.mts +2 -18
- package/dist/QueryClientConsumer.mjs +2 -13
- package/dist/SuspenseInfiniteQuery-BZ3SvXkD.mjs +30 -0
- package/dist/SuspenseInfiniteQuery-BZ3SvXkD.mjs.map +1 -0
- package/dist/SuspenseInfiniteQuery-ByTjC7r9.d.cts +31 -0
- package/dist/SuspenseInfiniteQuery-ByTjC7r9.d.cts.map +1 -0
- package/dist/SuspenseInfiniteQuery-asj0bHeh.d.mts +31 -0
- package/dist/SuspenseInfiniteQuery-asj0bHeh.d.mts.map +1 -0
- package/dist/SuspenseInfiniteQuery-qAybH413.cjs +35 -0
- package/dist/SuspenseInfiniteQuery-qAybH413.cjs.map +1 -0
- package/dist/SuspenseInfiniteQuery.cjs +2 -30
- package/dist/SuspenseInfiniteQuery.d.cts +2 -31
- package/dist/SuspenseInfiniteQuery.d.mts +2 -31
- package/dist/SuspenseInfiniteQuery.mjs +2 -29
- package/dist/SuspenseQueries-CZJAU3Eq.d.cts +31 -0
- package/dist/SuspenseQueries-CZJAU3Eq.d.cts.map +1 -0
- package/dist/SuspenseQueries-DlBy4veI.cjs +31 -0
- package/dist/SuspenseQueries-DlBy4veI.cjs.map +1 -0
- package/dist/SuspenseQueries-Dv6SQx-C.mjs +26 -0
- package/dist/SuspenseQueries-Dv6SQx-C.mjs.map +1 -0
- package/dist/SuspenseQueries-Nv07W4mb.d.mts +31 -0
- package/dist/SuspenseQueries-Nv07W4mb.d.mts.map +1 -0
- package/dist/SuspenseQueries.cjs +2 -26
- package/dist/SuspenseQueries.d.cts +2 -30
- package/dist/SuspenseQueries.d.mts +2 -30
- package/dist/SuspenseQueries.mjs +2 -25
- package/dist/SuspenseQuery-BNAZi5mZ.d.cts +31 -0
- package/dist/SuspenseQuery-BNAZi5mZ.d.cts.map +1 -0
- package/dist/SuspenseQuery-CGEFuzI_.cjs +35 -0
- package/dist/SuspenseQuery-CGEFuzI_.cjs.map +1 -0
- package/dist/SuspenseQuery-RbgXq6PC.mjs +30 -0
- package/dist/SuspenseQuery-RbgXq6PC.mjs.map +1 -0
- package/dist/SuspenseQuery-uHIieJ1n.d.mts +31 -0
- package/dist/SuspenseQuery-uHIieJ1n.d.mts.map +1 -0
- package/dist/SuspenseQuery.cjs +2 -30
- package/dist/SuspenseQuery.d.cts +2 -30
- package/dist/SuspenseQuery.d.mts +2 -30
- package/dist/SuspenseQuery.mjs +2 -29
- package/dist/components/ClientOnly.cjs +2 -12
- package/dist/components/ClientOnly.d.cts +13 -0
- package/dist/components/ClientOnly.d.cts.map +1 -0
- package/dist/components/ClientOnly.d.mts +13 -0
- package/dist/components/ClientOnly.d.mts.map +1 -0
- package/dist/components/ClientOnly.mjs +2 -12
- package/dist/createGetQueryClient-Cg34XLqS.cjs +68 -0
- package/dist/createGetQueryClient-Cg34XLqS.cjs.map +1 -0
- package/dist/createGetQueryClient-Cjacpz3C.mjs +63 -0
- package/dist/createGetQueryClient-Cjacpz3C.mjs.map +1 -0
- package/dist/createGetQueryClient-DI5GrATJ.d.cts +54 -0
- package/dist/createGetQueryClient-DI5GrATJ.d.cts.map +1 -0
- package/dist/createGetQueryClient-UFf6keL9.d.mts +54 -0
- package/dist/createGetQueryClient-UFf6keL9.d.mts.map +1 -0
- package/dist/createGetQueryClient.cjs +2 -63
- package/dist/createGetQueryClient.d.cts +2 -53
- package/dist/createGetQueryClient.d.mts +2 -53
- package/dist/createGetQueryClient.mjs +2 -62
- package/dist/index.cjs +12 -27
- package/dist/index.d.cts +12 -19
- package/dist/index.d.mts +12 -19
- package/dist/index.mjs +12 -19
- package/dist/mutationOptions-BdXvKAld.d.mts +7 -0
- package/dist/mutationOptions-BdXvKAld.d.mts.map +1 -0
- package/dist/mutationOptions-CBUqQakM.mjs +8 -0
- package/dist/mutationOptions-CBUqQakM.mjs.map +1 -0
- package/dist/mutationOptions-CzTorL9K.d.cts +7 -0
- package/dist/mutationOptions-CzTorL9K.d.cts.map +1 -0
- package/dist/mutationOptions-DNgLRYqd.cjs +14 -0
- package/dist/mutationOptions-DNgLRYqd.cjs.map +1 -0
- package/dist/mutationOptions.cjs +2 -9
- package/dist/mutationOptions.d.cts +2 -7
- package/dist/mutationOptions.d.mts +2 -7
- package/dist/mutationOptions.mjs +2 -7
- package/dist/objectSpread2-DTjFl4q7.mjs +67 -0
- package/dist/objectSpread2-DUnXKO-7.cjs +73 -0
- package/dist/objectWithoutProperties-BqF6LYLG.cjs +31 -0
- package/dist/objectWithoutProperties-DB_n2qVi.mjs +25 -0
- package/package.json +4 -4
- package/src/IsFetching.tsx +2 -3
- package/src/Mutation.tsx +1 -0
- package/src/PrefetchInfiniteQuery.tsx +8 -3
- package/src/PrefetchQuery.tsx +3 -3
- package/src/QueryClientConsumer.tsx +1 -0
- package/src/SuspenseInfiniteQuery.tsx +23 -2
- package/src/SuspenseQueries.tsx +1 -0
- package/src/SuspenseQuery.tsx +1 -0
- package/src/components/ClientOnly.tsx +1 -0
- package/src/createGetQueryClient.spec.tsx +77 -25
- package/src/index.ts +1 -14
- package/dist/IsFetching.cjs.map +0 -1
- package/dist/IsFetching.d.cts.map +0 -1
- package/dist/IsFetching.d.mts.map +0 -1
- package/dist/IsFetching.mjs.map +0 -1
- package/dist/Mutation.cjs.map +0 -1
- package/dist/Mutation.d.cts.map +0 -1
- package/dist/Mutation.d.mts.map +0 -1
- package/dist/Mutation.mjs.map +0 -1
- package/dist/PrefetchInfiniteQuery.cjs.map +0 -1
- package/dist/PrefetchInfiniteQuery.d.cts.map +0 -1
- package/dist/PrefetchInfiniteQuery.d.mts.map +0 -1
- package/dist/PrefetchInfiniteQuery.mjs.map +0 -1
- package/dist/PrefetchQuery.cjs.map +0 -1
- package/dist/PrefetchQuery.d.cts.map +0 -1
- package/dist/PrefetchQuery.d.mts.map +0 -1
- package/dist/PrefetchQuery.mjs.map +0 -1
- package/dist/QueriesHydration.cjs.map +0 -1
- package/dist/QueriesHydration.d.cts.map +0 -1
- package/dist/QueriesHydration.d.mts.map +0 -1
- package/dist/QueriesHydration.mjs.map +0 -1
- package/dist/QueryClientConsumer.cjs.map +0 -1
- package/dist/QueryClientConsumer.d.cts.map +0 -1
- package/dist/QueryClientConsumer.d.mts.map +0 -1
- package/dist/QueryClientConsumer.mjs.map +0 -1
- package/dist/SuspenseInfiniteQuery.cjs.map +0 -1
- package/dist/SuspenseInfiniteQuery.d.cts.map +0 -1
- package/dist/SuspenseInfiniteQuery.d.mts.map +0 -1
- package/dist/SuspenseInfiniteQuery.mjs.map +0 -1
- package/dist/SuspenseQueries.cjs.map +0 -1
- package/dist/SuspenseQueries.d.cts.map +0 -1
- package/dist/SuspenseQueries.d.mts.map +0 -1
- package/dist/SuspenseQueries.mjs.map +0 -1
- package/dist/SuspenseQuery.cjs.map +0 -1
- package/dist/SuspenseQuery.d.cts.map +0 -1
- package/dist/SuspenseQuery.d.mts.map +0 -1
- package/dist/SuspenseQuery.mjs.map +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/asyncToGenerator.cjs +0 -29
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/asyncToGenerator.mjs +0 -28
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.cjs +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.mjs +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.cjs +0 -27
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.mjs +0 -27
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.cjs +0 -15
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.mjs +0 -15
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.cjs +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.mjs +0 -13
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.cjs +0 -16
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.mjs +0 -16
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.cjs +0 -11
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.mjs +0 -11
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.cjs +0 -18
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.mjs +0 -12
- package/dist/components/ClientOnly.cjs.map +0 -1
- package/dist/components/ClientOnly.mjs.map +0 -1
- package/dist/createGetQueryClient.cjs.map +0 -1
- package/dist/createGetQueryClient.d.cts.map +0 -1
- package/dist/createGetQueryClient.d.mts.map +0 -1
- package/dist/createGetQueryClient.mjs.map +0 -1
- package/dist/infiniteQueryOptions.cjs +0 -18
- package/dist/infiniteQueryOptions.cjs.map +0 -1
- package/dist/infiniteQueryOptions.d.cts +0 -28
- package/dist/infiniteQueryOptions.d.cts.map +0 -1
- package/dist/infiniteQueryOptions.d.mts +0 -28
- package/dist/infiniteQueryOptions.d.mts.map +0 -1
- package/dist/infiniteQueryOptions.mjs +0 -17
- package/dist/infiniteQueryOptions.mjs.map +0 -1
- package/dist/mutationOptions.cjs.map +0 -1
- package/dist/mutationOptions.d.cts.map +0 -1
- package/dist/mutationOptions.d.mts.map +0 -1
- package/dist/mutationOptions.mjs.map +0 -1
- package/dist/queryOptions.cjs +0 -18
- package/dist/queryOptions.cjs.map +0 -1
- package/dist/queryOptions.d.cts +0 -28
- package/dist/queryOptions.d.cts.map +0 -1
- package/dist/queryOptions.d.mts +0 -28
- package/dist/queryOptions.d.mts.map +0 -1
- package/dist/queryOptions.mjs +0 -17
- package/dist/queryOptions.mjs.map +0 -1
- package/dist/usePrefetchInfiniteQuery.cjs +0 -18
- package/dist/usePrefetchInfiniteQuery.cjs.map +0 -1
- package/dist/usePrefetchInfiniteQuery.d.cts +0 -11
- package/dist/usePrefetchInfiniteQuery.d.cts.map +0 -1
- package/dist/usePrefetchInfiniteQuery.d.mts +0 -11
- package/dist/usePrefetchInfiniteQuery.d.mts.map +0 -1
- package/dist/usePrefetchInfiniteQuery.mjs +0 -17
- package/dist/usePrefetchInfiniteQuery.mjs.map +0 -1
- package/dist/usePrefetchQuery.cjs +0 -18
- package/dist/usePrefetchQuery.cjs.map +0 -1
- package/dist/usePrefetchQuery.d.cts +0 -11
- package/dist/usePrefetchQuery.d.cts.map +0 -1
- package/dist/usePrefetchQuery.d.mts +0 -11
- package/dist/usePrefetchQuery.d.mts.map +0 -1
- package/dist/usePrefetchQuery.mjs +0 -17
- package/dist/usePrefetchQuery.mjs.map +0 -1
- package/dist/useSuspenseInfiniteQuery.cjs +0 -20
- package/dist/useSuspenseInfiniteQuery.cjs.map +0 -1
- package/dist/useSuspenseInfiniteQuery.d.cts +0 -17
- package/dist/useSuspenseInfiniteQuery.d.cts.map +0 -1
- package/dist/useSuspenseInfiniteQuery.d.mts +0 -17
- package/dist/useSuspenseInfiniteQuery.d.mts.map +0 -1
- package/dist/useSuspenseInfiniteQuery.mjs +0 -19
- package/dist/useSuspenseInfiniteQuery.mjs.map +0 -1
- package/dist/useSuspenseQueries.cjs +0 -20
- package/dist/useSuspenseQueries.cjs.map +0 -1
- package/dist/useSuspenseQueries.d.cts +0 -36
- package/dist/useSuspenseQueries.d.cts.map +0 -1
- package/dist/useSuspenseQueries.d.mts +0 -36
- package/dist/useSuspenseQueries.d.mts.map +0 -1
- package/dist/useSuspenseQueries.mjs +0 -19
- package/dist/useSuspenseQueries.mjs.map +0 -1
- package/dist/useSuspenseQuery.cjs +0 -20
- package/dist/useSuspenseQuery.cjs.map +0 -1
- package/dist/useSuspenseQuery.d.cts +0 -36
- package/dist/useSuspenseQuery.d.cts.map +0 -1
- package/dist/useSuspenseQuery.d.mts +0 -36
- package/dist/useSuspenseQuery.d.mts.map +0 -1
- package/dist/useSuspenseQuery.mjs +0 -19
- package/dist/useSuspenseQuery.mjs.map +0 -1
- package/src/IsFetching.spec.tsx +0 -34
- package/src/infiniteQueryOptions.ts +0 -77
- package/src/queryOptions.ts +0 -80
- package/src/usePrefetchInfiniteQuery.test-d.tsx +0 -14
- package/src/usePrefetchInfiniteQuery.ts +0 -19
- package/src/usePrefetchQuery.test-d.tsx +0 -14
- package/src/usePrefetchQuery.ts +0 -19
- package/src/useSuspenseInfiniteQuery.ts +0 -34
- package/src/useSuspenseQueries.ts +0 -47
- package/src/useSuspenseQuery.ts +0 -39
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { Context, ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/QueryClientConsumer.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* @experimental This is experimental feature.
|
|
8
|
-
*/
|
|
9
|
-
declare function QueryClientConsumer({
|
|
10
|
-
children,
|
|
11
|
-
context
|
|
12
|
-
}: {
|
|
13
|
-
children: (queryClient: QueryClient) => ReactNode;
|
|
14
|
-
context?: Context<QueryClient | undefined>;
|
|
15
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { QueryClientConsumer };
|
|
18
|
-
//# sourceMappingURL=QueryClientConsumer.d.cts.map
|
|
1
|
+
import { t as QueryClientConsumer } from "./QueryClientConsumer-COVqqi9y.cjs";
|
|
2
|
+
export { QueryClientConsumer };
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { Context, ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/QueryClientConsumer.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* @experimental This is experimental feature.
|
|
8
|
-
*/
|
|
9
|
-
declare function QueryClientConsumer({
|
|
10
|
-
children,
|
|
11
|
-
context
|
|
12
|
-
}: {
|
|
13
|
-
children: (queryClient: QueryClient) => ReactNode;
|
|
14
|
-
context?: Context<QueryClient | undefined>;
|
|
15
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { QueryClientConsumer };
|
|
18
|
-
//# sourceMappingURL=QueryClientConsumer.d.mts.map
|
|
1
|
+
import { t as QueryClientConsumer } from "./QueryClientConsumer-YLHVJlTq.mjs";
|
|
2
|
+
export { QueryClientConsumer };
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { t as QueryClientConsumer } from "./QueryClientConsumer-B5vPlxA7.mjs";
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @experimental This is experimental feature.
|
|
9
|
-
*/
|
|
10
|
-
function QueryClientConsumer({ children, context }) {
|
|
11
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children(useQueryClient({ context })) });
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
export { QueryClientConsumer };
|
|
16
|
-
//# sourceMappingURL=QueryClientConsumer.mjs.map
|
|
5
|
+
export { QueryClientConsumer };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as _objectWithoutProperties } from "./objectWithoutProperties-DB_n2qVi.mjs";
|
|
2
|
+
import { useSuspenseInfiniteQuery } from "@tanstack/react-query";
|
|
3
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/SuspenseInfiniteQuery.tsx
|
|
6
|
+
const _excluded = ["children"];
|
|
7
|
+
/**
|
|
8
|
+
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
+
* `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
|
|
10
|
+
* @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { SuspenseInfiniteQuery } from '@suspensive/react-query'
|
|
14
|
+
*
|
|
15
|
+
* // You can use infiniteQueryOptions as props.
|
|
16
|
+
* <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
|
|
17
|
+
* {({ data, fetchNextPage }) => {
|
|
18
|
+
* return <></>
|
|
19
|
+
* }}
|
|
20
|
+
* </SuspenseInfiniteQuery>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
const SuspenseInfiniteQuery = (_ref) => {
|
|
24
|
+
let { children } = _ref;
|
|
25
|
+
return /* @__PURE__ */ jsx(Fragment, { children: children(useSuspenseInfiniteQuery(_objectWithoutProperties(_ref, _excluded))) });
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { SuspenseInfiniteQuery as t };
|
|
30
|
+
//# sourceMappingURL=SuspenseInfiniteQuery-BZ3SvXkD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-BZ3SvXkD.mjs","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":["'use client'\n\nimport {\n type OmitKeyof,\n type QueryKey,\n type UseInfiniteQueryOptions,\n type UseSuspenseInfiniteQueryResult,\n type WithRequired,\n useSuspenseInfiniteQuery,\n} from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\ntype UseSuspenseInfiniteQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n 'suspense' | 'useErrorBoundary' | 'enabled' | 'placeholderData' | 'networkMode' | 'initialData'\n >,\n 'queryKey'\n>\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseInfiniteQuery } from '@suspensive/react-query'\n *\n * // You can use infiniteQueryOptions as props.\n * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>\n * {({ data, fetchNextPage }) => {\n * return <></>\n * }}\n * </SuspenseInfiniteQuery>\n * ```\n */\nexport const SuspenseInfiniteQuery = <\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>({\n children,\n ...options\n}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode\n}) => <>{children(useSuspenseInfiniteQuery(options))}</>\n"],"mappings":";;;;;mBA+CE;;;;;;;;;;;;;;;;;AANF,MAAa,yBAKX,SAKI;KALJ,EACA;AAII,kDAAG,SAAS,mEAAiC,CAAC,GAAI"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
|
+
import { OmitKeyof, QueryKey, UseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult, WithRequired } from "@tanstack/react-query";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/SuspenseInfiniteQuery.d.ts
|
|
6
|
+
type UseSuspenseInfiniteQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'suspense' | 'useErrorBoundary' | 'enabled' | 'placeholderData' | 'networkMode' | 'initialData'>, 'queryKey'>;
|
|
7
|
+
/**
|
|
8
|
+
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
+
* `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
|
|
10
|
+
* @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { SuspenseInfiniteQuery } from '@suspensive/react-query'
|
|
14
|
+
*
|
|
15
|
+
* // You can use infiniteQueryOptions as props.
|
|
16
|
+
* <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
|
|
17
|
+
* {({ data, fetchNextPage }) => {
|
|
18
|
+
* return <></>
|
|
19
|
+
* }}
|
|
20
|
+
* </SuspenseInfiniteQuery>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>({
|
|
24
|
+
children,
|
|
25
|
+
...options
|
|
26
|
+
}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
27
|
+
children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
|
|
28
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SuspenseInfiniteQuery as t };
|
|
31
|
+
//# sourceMappingURL=SuspenseInfiniteQuery-ByTjC7r9.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-ByTjC7r9.d.cts","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;KAYK,kFAGK,gCACU,WAAW,YAC3B,aACF,UACE,wBAAwB,cAAc,QAAQ,OAAO,cAAc;;;AATjC;;;;;;;;;;;;;AA+BtC;AAGU,cAHG,qBAGH,EAAA,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAAA,YAAA,EAAA,kBACU,QADV,GACqB,QADrB,CAAA,CAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EAKP,+BALO,CAKyB,YALzB,EAKuC,MALvC,EAK+C,KAL/C,EAKsD,SALtD,CAAA,GAAA;EACU,QAAA,EAAA,CAAA,KAAA,EAKA,8BALA,CAK+B,KAL/B,EAKsC,MALtC,CAAA,EAAA,GAKkD,SALlD;CAAW,EAAA,GAM9B,kBAAA,CAAA,GAAA,CAAA,OAN8B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OmitKeyof, QueryKey, UseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult, WithRequired } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/SuspenseInfiniteQuery.d.ts
|
|
6
|
+
type UseSuspenseInfiniteQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'suspense' | 'useErrorBoundary' | 'enabled' | 'placeholderData' | 'networkMode' | 'initialData'>, 'queryKey'>;
|
|
7
|
+
/**
|
|
8
|
+
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
+
* `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
|
|
10
|
+
* @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { SuspenseInfiniteQuery } from '@suspensive/react-query'
|
|
14
|
+
*
|
|
15
|
+
* // You can use infiniteQueryOptions as props.
|
|
16
|
+
* <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
|
|
17
|
+
* {({ data, fetchNextPage }) => {
|
|
18
|
+
* return <></>
|
|
19
|
+
* }}
|
|
20
|
+
* </SuspenseInfiniteQuery>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>({
|
|
24
|
+
children,
|
|
25
|
+
...options
|
|
26
|
+
}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
27
|
+
children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
|
|
28
|
+
}) => react_jsx_runtime3.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SuspenseInfiniteQuery as t };
|
|
31
|
+
//# sourceMappingURL=SuspenseInfiniteQuery-asj0bHeh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-asj0bHeh.d.mts","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;KAYK,kFAGK,gCACU,WAAW,YAC3B,aACF,UACE,wBAAwB,cAAc,QAAQ,OAAO,cAAc;;;AATjC;;;;;;;;;;;;;AA+BtC;AAGU,cAHG,qBAGH,EAAA,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAAA,YAAA,EAAA,kBACU,QADV,GACqB,QADrB,CAAA,CAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EAKP,+BALO,CAKyB,YALzB,EAKuC,MALvC,EAK+C,KAL/C,EAKsD,SALtD,CAAA,GAAA;EACU,QAAA,EAAA,CAAA,KAAA,EAKA,8BALA,CAK+B,KAL/B,EAKsC,MALtC,CAAA,EAAA,GAKkD,SALlD;CAAW,EAAA,GAM9B,kBAAA,CAAA,GAAA,CAAA,OAN8B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_objectWithoutProperties = require('./objectWithoutProperties-BqF6LYLG.cjs');
|
|
2
|
+
let __tanstack_react_query = require("@tanstack/react-query");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
|
|
5
|
+
//#region src/SuspenseInfiniteQuery.tsx
|
|
6
|
+
const _excluded = ["children"];
|
|
7
|
+
/**
|
|
8
|
+
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
+
* `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
|
|
10
|
+
* @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { SuspenseInfiniteQuery } from '@suspensive/react-query'
|
|
14
|
+
*
|
|
15
|
+
* // You can use infiniteQueryOptions as props.
|
|
16
|
+
* <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
|
|
17
|
+
* {({ data, fetchNextPage }) => {
|
|
18
|
+
* return <></>
|
|
19
|
+
* }}
|
|
20
|
+
* </SuspenseInfiniteQuery>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
const SuspenseInfiniteQuery = (_ref) => {
|
|
24
|
+
let { children } = _ref;
|
|
25
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, __tanstack_react_query.useSuspenseInfiniteQuery)(require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded))) });
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
Object.defineProperty(exports, 'SuspenseInfiniteQuery', {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return SuspenseInfiniteQuery;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=SuspenseInfiniteQuery-qAybH413.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-qAybH413.cjs","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":["'use client'\n\nimport {\n type OmitKeyof,\n type QueryKey,\n type UseInfiniteQueryOptions,\n type UseSuspenseInfiniteQueryResult,\n type WithRequired,\n useSuspenseInfiniteQuery,\n} from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\ntype UseSuspenseInfiniteQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n 'suspense' | 'useErrorBoundary' | 'enabled' | 'placeholderData' | 'networkMode' | 'initialData'\n >,\n 'queryKey'\n>\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseInfiniteQuery } from '@suspensive/react-query'\n *\n * // You can use infiniteQueryOptions as props.\n * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>\n * {({ data, fetchNextPage }) => {\n * return <></>\n * }}\n * </SuspenseInfiniteQuery>\n * ```\n */\nexport const SuspenseInfiniteQuery = <\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>({\n children,\n ...options\n}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode\n}) => <>{children(useSuspenseInfiniteQuery(options))}</>\n"],"mappings":";;;;;mBA+CE;;;;;;;;;;;;;;;;;AANF,MAAa,yBAKX,SAKI;KALJ,EACA;AAII,2FAAG,wIAA0C,CAAC,GAAI"}
|
|
@@ -1,33 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
const require_objectWithoutProperties = require('./_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.cjs');
|
|
5
|
-
let _tanstack_react_query = require("@tanstack/react-query");
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-qAybH413.cjs');
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
const _excluded = ["children"];
|
|
10
|
-
/**
|
|
11
|
-
* We provide these components to clearly express what causes suspense at the same depth.
|
|
12
|
-
* `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
|
|
13
|
-
* @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* import { SuspenseInfiniteQuery } from '@suspensive/react-query'
|
|
17
|
-
*
|
|
18
|
-
* // You can use infiniteQueryOptions as props.
|
|
19
|
-
* <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
|
|
20
|
-
* {({ data, fetchNextPage }) => {
|
|
21
|
-
* return <></>
|
|
22
|
-
* }}
|
|
23
|
-
* </SuspenseInfiniteQuery>
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
const SuspenseInfiniteQuery = (_ref) => {
|
|
27
|
-
let { children } = _ref;
|
|
28
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, _tanstack_react_query.useSuspenseInfiniteQuery)(require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded))) });
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
exports.SuspenseInfiniteQuery = SuspenseInfiniteQuery;
|
|
33
|
-
//# sourceMappingURL=SuspenseInfiniteQuery.cjs.map
|
|
5
|
+
exports.SuspenseInfiniteQuery = require_SuspenseInfiniteQuery.SuspenseInfiniteQuery;
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { QueryKey, UseSuspenseInfiniteQueryResult } from "@tanstack/react-query";
|
|
4
|
-
import { ReactNode } from "react";
|
|
5
|
-
|
|
6
|
-
//#region src/SuspenseInfiniteQuery.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
-
* `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
|
|
10
|
-
* @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { SuspenseInfiniteQuery } from '@suspensive/react-query'
|
|
14
|
-
*
|
|
15
|
-
* // You can use infiniteQueryOptions as props.
|
|
16
|
-
* <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
|
|
17
|
-
* {({ data, fetchNextPage }) => {
|
|
18
|
-
* return <></>
|
|
19
|
-
* }}
|
|
20
|
-
* </SuspenseInfiniteQuery>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>({
|
|
24
|
-
children,
|
|
25
|
-
...options
|
|
26
|
-
}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
27
|
-
children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
|
|
28
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { SuspenseInfiniteQuery };
|
|
31
|
-
//# sourceMappingURL=SuspenseInfiniteQuery.d.cts.map
|
|
1
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-ByTjC7r9.cjs";
|
|
2
|
+
export { SuspenseInfiniteQuery };
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
import { ReactNode } from "react";
|
|
5
|
-
|
|
6
|
-
//#region src/SuspenseInfiniteQuery.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
-
* `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
|
|
10
|
-
* @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { SuspenseInfiniteQuery } from '@suspensive/react-query'
|
|
14
|
-
*
|
|
15
|
-
* // You can use infiniteQueryOptions as props.
|
|
16
|
-
* <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
|
|
17
|
-
* {({ data, fetchNextPage }) => {
|
|
18
|
-
* return <></>
|
|
19
|
-
* }}
|
|
20
|
-
* </SuspenseInfiniteQuery>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>({
|
|
24
|
-
children,
|
|
25
|
-
...options
|
|
26
|
-
}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
27
|
-
children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
|
|
28
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { SuspenseInfiniteQuery };
|
|
31
|
-
//# sourceMappingURL=SuspenseInfiniteQuery.d.mts.map
|
|
1
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-asj0bHeh.mjs";
|
|
2
|
+
export { SuspenseInfiniteQuery };
|
|
@@ -1,32 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { useSuspenseInfiniteQuery } from "@tanstack/react-query";
|
|
5
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-BZ3SvXkD.mjs";
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
const _excluded = ["children"];
|
|
9
|
-
/**
|
|
10
|
-
* We provide these components to clearly express what causes suspense at the same depth.
|
|
11
|
-
* `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
|
|
12
|
-
* @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* import { SuspenseInfiniteQuery } from '@suspensive/react-query'
|
|
16
|
-
*
|
|
17
|
-
* // You can use infiniteQueryOptions as props.
|
|
18
|
-
* <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
|
|
19
|
-
* {({ data, fetchNextPage }) => {
|
|
20
|
-
* return <></>
|
|
21
|
-
* }}
|
|
22
|
-
* </SuspenseInfiniteQuery>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
const SuspenseInfiniteQuery = (_ref) => {
|
|
26
|
-
let { children } = _ref;
|
|
27
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children(useSuspenseInfiniteQuery(_objectWithoutProperties(_ref, _excluded))) });
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
export { SuspenseInfiniteQuery };
|
|
32
|
-
//# sourceMappingURL=SuspenseInfiniteQuery.mjs.map
|
|
5
|
+
export { SuspenseInfiniteQuery };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
|
+
import { SuspenseQueriesOptions, SuspenseQueriesResults } from "@tanstack/react-query";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/SuspenseQueries.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
+
* `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
|
|
10
|
+
* @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { SuspenseQueries } from '@suspensive/react-query'
|
|
14
|
+
*
|
|
15
|
+
* <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
|
|
16
|
+
* {([{ data: firstQueryData }, { data: secondQueryData }]) => {
|
|
17
|
+
* return <></>
|
|
18
|
+
* }}
|
|
19
|
+
* </SuspenseQueries>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function SuspenseQueries<T extends any[]>({
|
|
23
|
+
children,
|
|
24
|
+
queries
|
|
25
|
+
}: {
|
|
26
|
+
queries: readonly [...SuspenseQueriesOptions<T>];
|
|
27
|
+
children: (queries: SuspenseQueriesResults<T>) => ReactNode;
|
|
28
|
+
}): react_jsx_runtime3.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SuspenseQueries as t };
|
|
31
|
+
//# sourceMappingURL=SuspenseQueries-CZJAU3Eq.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuspenseQueries-CZJAU3Eq.d.cts","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAoBA;;;;;;;;;;;;iBAAgB;;;;wBAIQ,uBAAuB;sBACzB,uBAAuB,OAAO;IACnD,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
let __tanstack_react_query = require("@tanstack/react-query");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
|
|
4
|
+
//#region src/SuspenseQueries.tsx
|
|
5
|
+
/**
|
|
6
|
+
* We provide these components to clearly express what causes suspense at the same depth.
|
|
7
|
+
* `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
|
|
8
|
+
* @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { SuspenseQueries } from '@suspensive/react-query'
|
|
12
|
+
*
|
|
13
|
+
* <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
|
|
14
|
+
* {([{ data: firstQueryData }, { data: secondQueryData }]) => {
|
|
15
|
+
* return <></>
|
|
16
|
+
* }}
|
|
17
|
+
* </SuspenseQueries>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function SuspenseQueries({ children, queries }) {
|
|
21
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, __tanstack_react_query.useSuspenseQueries)({ queries })) });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
Object.defineProperty(exports, 'SuspenseQueries', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return SuspenseQueries;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=SuspenseQueries-DlBy4veI.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuspenseQueries-DlBy4veI.cjs","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":["'use client'\n\nimport { type SuspenseQueriesOptions, type SuspenseQueriesResults, useSuspenseQueries } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseQueries } from '@suspensive/react-query'\n *\n * <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>\n * {([{ data: firstQueryData }, { data: secondQueryData }]) => {\n * return <></>\n * }}\n * </SuspenseQueries>\n * ```\n */\nexport function SuspenseQueries<T extends any[]>({\n children,\n queries,\n}: {\n queries: readonly [...SuspenseQueriesOptions<T>]\n children: (queries: SuspenseQueriesResults<T>) => ReactNode\n}) {\n return <>{children(useSuspenseQueries({ queries }))}</>\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,SAAgB,gBAAiC,EAC/C,UACA,WAIC;AACD,QAAO,mFAAG,wDAA4B,EAAE,SAAS,CAAC,CAAC,GAAI"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useSuspenseQueries } from "@tanstack/react-query";
|
|
2
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/SuspenseQueries.tsx
|
|
5
|
+
/**
|
|
6
|
+
* We provide these components to clearly express what causes suspense at the same depth.
|
|
7
|
+
* `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
|
|
8
|
+
* @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { SuspenseQueries } from '@suspensive/react-query'
|
|
12
|
+
*
|
|
13
|
+
* <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
|
|
14
|
+
* {([{ data: firstQueryData }, { data: secondQueryData }]) => {
|
|
15
|
+
* return <></>
|
|
16
|
+
* }}
|
|
17
|
+
* </SuspenseQueries>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function SuspenseQueries({ children, queries }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Fragment, { children: children(useSuspenseQueries({ queries })) });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { SuspenseQueries as t };
|
|
26
|
+
//# sourceMappingURL=SuspenseQueries-Dv6SQx-C.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuspenseQueries-Dv6SQx-C.mjs","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":["'use client'\n\nimport { type SuspenseQueriesOptions, type SuspenseQueriesResults, useSuspenseQueries } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseQueries } from '@suspensive/react-query'\n *\n * <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>\n * {([{ data: firstQueryData }, { data: secondQueryData }]) => {\n * return <></>\n * }}\n * </SuspenseQueries>\n * ```\n */\nexport function SuspenseQueries<T extends any[]>({\n children,\n queries,\n}: {\n queries: readonly [...SuspenseQueriesOptions<T>]\n children: (queries: SuspenseQueriesResults<T>) => ReactNode\n}) {\n return <>{children(useSuspenseQueries({ queries }))}</>\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBA,SAAgB,gBAAiC,EAC/C,UACA,WAIC;AACD,QAAO,0CAAG,SAAS,mBAAmB,EAAE,SAAS,CAAC,CAAC,GAAI"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SuspenseQueriesOptions, SuspenseQueriesResults } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/SuspenseQueries.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
+
* `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
|
|
10
|
+
* @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { SuspenseQueries } from '@suspensive/react-query'
|
|
14
|
+
*
|
|
15
|
+
* <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
|
|
16
|
+
* {([{ data: firstQueryData }, { data: secondQueryData }]) => {
|
|
17
|
+
* return <></>
|
|
18
|
+
* }}
|
|
19
|
+
* </SuspenseQueries>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare function SuspenseQueries<T extends any[]>({
|
|
23
|
+
children,
|
|
24
|
+
queries
|
|
25
|
+
}: {
|
|
26
|
+
queries: readonly [...SuspenseQueriesOptions<T>];
|
|
27
|
+
children: (queries: SuspenseQueriesResults<T>) => ReactNode;
|
|
28
|
+
}): react_jsx_runtime4.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SuspenseQueries as t };
|
|
31
|
+
//# sourceMappingURL=SuspenseQueries-Nv07W4mb.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuspenseQueries-Nv07W4mb.d.mts","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAoBA;;;;;;;;;;;;iBAAgB;;;;wBAIQ,uBAAuB;sBACzB,uBAAuB,OAAO;IACnD,kBAAA,CAAA,GAAA,CAAA"}
|
package/dist/SuspenseQueries.cjs
CHANGED
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
let _tanstack_react_query = require("@tanstack/react-query");
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
const require_SuspenseQueries = require('./SuspenseQueries-DlBy4veI.cjs');
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* We provide these components to clearly express what causes suspense at the same depth.
|
|
10
|
-
* `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
|
|
11
|
-
* @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* import { SuspenseQueries } from '@suspensive/react-query'
|
|
15
|
-
*
|
|
16
|
-
* <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
|
|
17
|
-
* {([{ data: firstQueryData }, { data: secondQueryData }]) => {
|
|
18
|
-
* return <></>
|
|
19
|
-
* }}
|
|
20
|
-
* </SuspenseQueries>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
function SuspenseQueries({ children, queries }) {
|
|
24
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, _tanstack_react_query.useSuspenseQueries)({ queries })) });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
exports.SuspenseQueries = SuspenseQueries;
|
|
29
|
-
//# sourceMappingURL=SuspenseQueries.cjs.map
|
|
5
|
+
exports.SuspenseQueries = require_SuspenseQueries.SuspenseQueries;
|
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/SuspenseQueries.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* We provide these components to clearly express what causes suspense at the same depth.
|
|
8
|
-
* `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
|
|
9
|
-
* @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* import { SuspenseQueries } from '@suspensive/react-query'
|
|
13
|
-
*
|
|
14
|
-
* <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
|
|
15
|
-
* {([{ data: firstQueryData }, { data: secondQueryData }]) => {
|
|
16
|
-
* return <></>
|
|
17
|
-
* }}
|
|
18
|
-
* </SuspenseQueries>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare function SuspenseQueries<T extends any[]>({
|
|
22
|
-
children,
|
|
23
|
-
queries
|
|
24
|
-
}: {
|
|
25
|
-
queries: readonly [...SuspenseQueriesOptions<T>];
|
|
26
|
-
children: (queries: SuspenseQueriesResults<T>) => ReactNode;
|
|
27
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { SuspenseQueries };
|
|
30
|
-
//# sourceMappingURL=SuspenseQueries.d.cts.map
|
|
1
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-CZJAU3Eq.cjs";
|
|
2
|
+
export { SuspenseQueries };
|
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/SuspenseQueries.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* We provide these components to clearly express what causes suspense at the same depth.
|
|
8
|
-
* `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
|
|
9
|
-
* @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* import { SuspenseQueries } from '@suspensive/react-query'
|
|
13
|
-
*
|
|
14
|
-
* <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
|
|
15
|
-
* {([{ data: firstQueryData }, { data: secondQueryData }]) => {
|
|
16
|
-
* return <></>
|
|
17
|
-
* }}
|
|
18
|
-
* </SuspenseQueries>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare function SuspenseQueries<T extends any[]>({
|
|
22
|
-
children,
|
|
23
|
-
queries
|
|
24
|
-
}: {
|
|
25
|
-
queries: readonly [...SuspenseQueriesOptions<T>];
|
|
26
|
-
children: (queries: SuspenseQueriesResults<T>) => ReactNode;
|
|
27
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { SuspenseQueries };
|
|
30
|
-
//# sourceMappingURL=SuspenseQueries.d.mts.map
|
|
1
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-Nv07W4mb.mjs";
|
|
2
|
+
export { SuspenseQueries };
|
package/dist/SuspenseQueries.mjs
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-Dv6SQx-C.mjs";
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* We provide these components to clearly express what causes suspense at the same depth.
|
|
9
|
-
* `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
|
|
10
|
-
* @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { SuspenseQueries } from '@suspensive/react-query'
|
|
14
|
-
*
|
|
15
|
-
* <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
|
|
16
|
-
* {([{ data: firstQueryData }, { data: secondQueryData }]) => {
|
|
17
|
-
* return <></>
|
|
18
|
-
* }}
|
|
19
|
-
* </SuspenseQueries>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
function SuspenseQueries({ children, queries }) {
|
|
23
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children(useSuspenseQueries({ queries })) });
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { SuspenseQueries };
|
|
28
|
-
//# sourceMappingURL=SuspenseQueries.mjs.map
|
|
5
|
+
export { SuspenseQueries };
|