@suspensive/react-query-4 3.17.0 → 3.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{IsFetching-BLwpeMoH.d.mts → IsFetching-BDzr-LPo.d.cts} +3 -3
- package/dist/{IsFetching-BLwpeMoH.d.mts.map → IsFetching-BDzr-LPo.d.cts.map} +1 -1
- package/dist/{IsFetching-KHFEg_eS.d.cts → IsFetching-D3xmE2Kn.d.mts} +3 -3
- package/dist/{IsFetching-KHFEg_eS.d.cts.map → IsFetching-D3xmE2Kn.d.mts.map} +1 -1
- package/dist/IsFetching.cjs +0 -1
- package/dist/IsFetching.d.cts +1 -1
- package/dist/IsFetching.d.mts +1 -1
- package/dist/IsFetching.mjs +0 -1
- package/dist/{Mutation-Dh5n54P8.mjs → Mutation-BJunfaUO.mjs} +2 -2
- package/dist/{Mutation-Dh5n54P8.mjs.map → Mutation-BJunfaUO.mjs.map} +1 -1
- package/dist/{Mutation-B2H-fZYn.cjs → Mutation-BWER242k.cjs} +2 -2
- package/dist/{Mutation-B2H-fZYn.cjs.map → Mutation-BWER242k.cjs.map} +1 -1
- package/dist/{Mutation-Dt5kUsd8.d.cts → Mutation-kNfR4Z34.d.cts} +3 -3
- package/dist/{Mutation-Dt5kUsd8.d.cts.map → Mutation-kNfR4Z34.d.cts.map} +1 -1
- package/dist/Mutation.cjs +1 -3
- package/dist/Mutation.d.cts +1 -1
- package/dist/Mutation.mjs +1 -3
- package/dist/{PrefetchInfiniteQuery-BewcG5rR.d.cts → PrefetchInfiniteQuery-B176YxLR.d.cts} +3 -3
- package/dist/{PrefetchInfiniteQuery-BewcG5rR.d.cts.map → PrefetchInfiniteQuery-B176YxLR.d.cts.map} +1 -1
- package/dist/{PrefetchInfiniteQuery-Dkd2ChpC.d.mts → PrefetchInfiniteQuery-Dzjm5lf8.d.mts} +3 -3
- package/dist/{PrefetchInfiniteQuery-Dkd2ChpC.d.mts.map → PrefetchInfiniteQuery-Dzjm5lf8.d.mts.map} +1 -1
- package/dist/PrefetchInfiniteQuery.cjs +0 -2
- package/dist/PrefetchInfiniteQuery.d.cts +1 -1
- package/dist/PrefetchInfiniteQuery.d.mts +1 -1
- package/dist/PrefetchInfiniteQuery.mjs +0 -2
- package/dist/{PrefetchQuery-CoxqaDzh.d.mts → PrefetchQuery-DfCIfLWZ.d.mts} +3 -3
- package/dist/{PrefetchQuery-BfNg0tKA.d.cts.map → PrefetchQuery-DfCIfLWZ.d.mts.map} +1 -1
- package/dist/{PrefetchQuery-BfNg0tKA.d.cts → PrefetchQuery-UXE0XDb0.d.cts} +3 -3
- package/dist/{PrefetchQuery-CoxqaDzh.d.mts.map → PrefetchQuery-UXE0XDb0.d.cts.map} +1 -1
- package/dist/PrefetchQuery.cjs +0 -2
- package/dist/PrefetchQuery.d.cts +1 -1
- package/dist/PrefetchQuery.d.mts +1 -1
- package/dist/PrefetchQuery.mjs +0 -2
- package/dist/{QueriesHydration-CQ5Lct-O.cjs → QueriesHydration-BT0rn0KQ.cjs} +4 -4
- package/dist/{QueriesHydration-CQ5Lct-O.cjs.map → QueriesHydration-BT0rn0KQ.cjs.map} +1 -1
- package/dist/{QueriesHydration-BCGsQdvj.d.cts → QueriesHydration-Bl02gjbZ.d.mts} +3 -3
- package/dist/{QueriesHydration-BCGsQdvj.d.cts.map → QueriesHydration-Bl02gjbZ.d.mts.map} +1 -1
- package/dist/{QueriesHydration-D-iXKM2g.mjs → QueriesHydration-BvU3699s.mjs} +4 -4
- package/dist/{QueriesHydration-D-iXKM2g.mjs.map → QueriesHydration-BvU3699s.mjs.map} +1 -1
- package/dist/{QueriesHydration-Bna6eo52.d.mts → QueriesHydration-CZOIEBb-.d.cts} +3 -3
- package/dist/{QueriesHydration-Bna6eo52.d.mts.map → QueriesHydration-CZOIEBb-.d.cts.map} +1 -1
- package/dist/QueriesHydration.cjs +1 -4
- package/dist/QueriesHydration.d.cts +1 -1
- package/dist/QueriesHydration.d.mts +1 -1
- package/dist/QueriesHydration.mjs +1 -4
- package/dist/{QueryClientConsumer-DNur-77Z.d.mts → QueryClientConsumer-CPUb7Jr6.d.cts} +3 -3
- package/dist/{QueryClientConsumer-DNur-77Z.d.mts.map → QueryClientConsumer-CPUb7Jr6.d.cts.map} +1 -1
- package/dist/{QueryClientConsumer-pihgMOoA.d.cts → QueryClientConsumer-DJo29zBV.d.mts} +3 -3
- package/dist/{QueryClientConsumer-pihgMOoA.d.cts.map → QueryClientConsumer-DJo29zBV.d.mts.map} +1 -1
- package/dist/QueryClientConsumer.cjs +0 -1
- package/dist/QueryClientConsumer.d.cts +1 -1
- package/dist/QueryClientConsumer.d.mts +1 -1
- package/dist/QueryClientConsumer.mjs +0 -1
- package/dist/{SuspenseInfiniteQuery-BwSKmJgm.d.cts → SuspenseInfiniteQuery-BeKUK5uX.d.mts} +3 -3
- package/dist/{SuspenseInfiniteQuery-BwSKmJgm.d.cts.map → SuspenseInfiniteQuery-BeKUK5uX.d.mts.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-CDKieP3L.d.mts → SuspenseInfiniteQuery-DdnqEVHY.d.cts} +3 -3
- package/dist/{SuspenseInfiniteQuery-CDKieP3L.d.mts.map → SuspenseInfiniteQuery-DdnqEVHY.d.cts.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-DOYHl2Cu.cjs → SuspenseInfiniteQuery-Dq97Dear.cjs} +2 -2
- package/dist/{SuspenseInfiniteQuery-DOYHl2Cu.cjs.map → SuspenseInfiniteQuery-Dq97Dear.cjs.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-CZ73eUHy.mjs → SuspenseInfiniteQuery-DwW5I_M2.mjs} +2 -2
- package/dist/{SuspenseInfiniteQuery-CZ73eUHy.mjs.map → SuspenseInfiniteQuery-DwW5I_M2.mjs.map} +1 -1
- package/dist/SuspenseInfiniteQuery.cjs +1 -3
- package/dist/SuspenseInfiniteQuery.d.cts +1 -2
- package/dist/SuspenseInfiniteQuery.d.mts +1 -1
- package/dist/SuspenseInfiniteQuery.mjs +1 -3
- package/dist/{SuspenseQueries-wO-fCk30.d.cts → SuspenseQueries-iahkpf8N.d.mts} +3 -3
- package/dist/{SuspenseQueries-CfsA2n8v.d.mts.map → SuspenseQueries-iahkpf8N.d.mts.map} +1 -1
- package/dist/{SuspenseQueries-CfsA2n8v.d.mts → SuspenseQueries-qFfeHxxp.d.cts} +3 -3
- package/dist/{SuspenseQueries-wO-fCk30.d.cts.map → SuspenseQueries-qFfeHxxp.d.cts.map} +1 -1
- package/dist/SuspenseQueries.cjs +0 -1
- package/dist/SuspenseQueries.d.cts +1 -1
- package/dist/SuspenseQueries.d.mts +1 -1
- package/dist/SuspenseQueries.mjs +0 -1
- package/dist/{SuspenseQuery-B-SvR9l0.cjs → SuspenseQuery--nIIoDt1.cjs} +2 -2
- package/dist/{SuspenseQuery-B-SvR9l0.cjs.map → SuspenseQuery--nIIoDt1.cjs.map} +1 -1
- package/dist/{SuspenseQuery-C8eBAEnT.mjs → SuspenseQuery-CgN3lrzL.mjs} +2 -2
- package/dist/{SuspenseQuery-C8eBAEnT.mjs.map → SuspenseQuery-CgN3lrzL.mjs.map} +1 -1
- package/dist/{SuspenseQuery-C4Og1-Xi.d.mts → SuspenseQuery-VjYG_b1z.d.mts} +3 -3
- package/dist/{SuspenseQuery-C4Og1-Xi.d.mts.map → SuspenseQuery-VjYG_b1z.d.mts.map} +1 -1
- package/dist/{SuspenseQuery-D4IZU_Co.d.cts → SuspenseQuery-dE_OqtUB.d.cts} +3 -3
- package/dist/{SuspenseQuery-D4IZU_Co.d.cts.map → SuspenseQuery-dE_OqtUB.d.cts.map} +1 -1
- package/dist/SuspenseQuery.cjs +1 -3
- package/dist/SuspenseQuery.d.cts +1 -1
- package/dist/SuspenseQuery.d.mts +1 -1
- package/dist/SuspenseQuery.mjs +1 -3
- package/dist/components/ClientOnly.cjs +0 -1
- package/dist/components/ClientOnly.d.cts +2 -2
- package/dist/components/ClientOnly.mjs +0 -1
- package/dist/{createGetQueryClient-DwJ6i2aT.mjs → createGetQueryClient-B0yrcyXF.mjs} +2 -2
- package/dist/{createGetQueryClient-DwJ6i2aT.mjs.map → createGetQueryClient-B0yrcyXF.mjs.map} +1 -1
- package/dist/{createGetQueryClient-CNRrumkK.cjs → createGetQueryClient-nXvPqrrS.cjs} +2 -2
- package/dist/{createGetQueryClient-CNRrumkK.cjs.map → createGetQueryClient-nXvPqrrS.cjs.map} +1 -1
- package/dist/createGetQueryClient.cjs +1 -2
- package/dist/createGetQueryClient.mjs +1 -2
- package/dist/index.cjs +5 -8
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +5 -8
- package/dist/{objectSpread2-BHq2muQo.mjs → objectSpread2-BFPIJj0i.mjs} +5 -5
- package/dist/{objectSpread2-CGqp5tYf.cjs → objectSpread2-CpqxxdM2.cjs} +5 -5
- package/dist/{objectWithoutProperties-DjGVB1dZ.cjs → objectWithoutProperties-BqF6LYLG.cjs} +2 -2
- package/dist/{objectWithoutProperties-MpQDFxYs.mjs → objectWithoutProperties-Drlt06jT.mjs} +2 -2
- package/dist/usePrefetchInfiniteQuery.cjs +0 -1
- package/dist/usePrefetchInfiniteQuery.mjs +0 -1
- package/dist/usePrefetchQuery.cjs +0 -1
- package/dist/usePrefetchQuery.mjs +0 -1
- package/dist/useSuspenseInfiniteQuery.cjs +0 -1
- package/dist/useSuspenseInfiniteQuery.mjs +0 -1
- package/dist/useSuspenseQueries.cjs +0 -1
- package/dist/useSuspenseQueries.mjs +0 -1
- package/dist/useSuspenseQuery.cjs +0 -1
- package/dist/useSuspenseQuery.mjs +0 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_objectWithoutProperties = require('./objectWithoutProperties-
|
|
1
|
+
const require_objectWithoutProperties = require('./objectWithoutProperties-BqF6LYLG.cjs');
|
|
2
2
|
let __tanstack_react_query = require("@tanstack/react-query");
|
|
3
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
|
|
@@ -32,4 +32,4 @@ Object.defineProperty(exports, 'SuspenseInfiniteQuery', {
|
|
|
32
32
|
return SuspenseInfiniteQuery;
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
//# sourceMappingURL=SuspenseInfiniteQuery-
|
|
35
|
+
//# sourceMappingURL=SuspenseInfiniteQuery-Dq97Dear.cjs.map
|
package/dist/{SuspenseInfiniteQuery-DOYHl2Cu.cjs.map → SuspenseInfiniteQuery-Dq97Dear.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseInfiniteQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-Dq97Dear.cjs","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":["'use client'\n\nimport { type QueryKey, type UseSuspenseInfiniteQueryResult, useSuspenseInfiniteQuery } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\nimport { type UseSuspenseInfiniteQueryOptions } from './useSuspenseInfiniteQuery'\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":";;;;;mBA2BE;;;;;;;;;;;;;;;;;AANF,MAAa,yBAKX,SAKI;KALJ,EACA;AAII,2FAAG,wIAA0C,CAAC,GAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _objectWithoutProperties } from "./objectWithoutProperties-
|
|
1
|
+
import { t as _objectWithoutProperties } from "./objectWithoutProperties-Drlt06jT.mjs";
|
|
2
2
|
import { useSuspenseInfiniteQuery } from "@tanstack/react-query";
|
|
3
3
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -27,4 +27,4 @@ const SuspenseInfiniteQuery = (_ref) => {
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
export { SuspenseInfiniteQuery as t };
|
|
30
|
-
//# sourceMappingURL=SuspenseInfiniteQuery-
|
|
30
|
+
//# sourceMappingURL=SuspenseInfiniteQuery-DwW5I_M2.mjs.map
|
package/dist/{SuspenseInfiniteQuery-CZ73eUHy.mjs.map → SuspenseInfiniteQuery-DwW5I_M2.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseInfiniteQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-DwW5I_M2.mjs","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":["'use client'\n\nimport { type QueryKey, type UseSuspenseInfiniteQueryResult, useSuspenseInfiniteQuery } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\nimport { type UseSuspenseInfiniteQueryOptions } from './useSuspenseInfiniteQuery'\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":";;;;;mBA2BE;;;;;;;;;;;;;;;;;AANF,MAAa,yBAKX,SAKI;KALJ,EACA;AAII,kDAAG,SAAS,mEAAiC,CAAC,GAAI"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
require('./objectWithoutProperties-DjGVB1dZ.cjs');
|
|
5
|
-
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-DOYHl2Cu.cjs');
|
|
3
|
+
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-Dq97Dear.cjs');
|
|
6
4
|
|
|
7
5
|
exports.SuspenseInfiniteQuery = require_SuspenseInfiniteQuery.SuspenseInfiniteQuery;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import "./objectWithoutProperties-MpQDFxYs.mjs";
|
|
5
|
-
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-CZ73eUHy.mjs";
|
|
3
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-DwW5I_M2.mjs";
|
|
6
4
|
|
|
7
5
|
export { SuspenseInfiniteQuery };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
1
|
import { SuspenseQueriesOptions, SuspenseQueriesResults } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/SuspenseQueries.d.ts
|
|
@@ -25,7 +25,7 @@ declare function SuspenseQueries<T extends any[]>({
|
|
|
25
25
|
}: {
|
|
26
26
|
queries: readonly [...SuspenseQueriesOptions<T>];
|
|
27
27
|
children: (queries: SuspenseQueriesResults<T>) => ReactNode;
|
|
28
|
-
}):
|
|
28
|
+
}): react_jsx_runtime4.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { SuspenseQueries as t };
|
|
31
|
-
//# sourceMappingURL=SuspenseQueries-
|
|
31
|
+
//# sourceMappingURL=SuspenseQueries-iahkpf8N.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQueries-
|
|
1
|
+
{"version":3,"file":"SuspenseQueries-iahkpf8N.d.mts","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAoBA;;;;;;;;;;;;iBAAgB;;;;wBAIQ,uBAAuB;sBACzB,uBAAuB,OAAO;IACnD,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
1
2
|
import { SuspenseQueriesOptions, SuspenseQueriesResults } from "@tanstack/react-query";
|
|
2
|
-
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/SuspenseQueries.d.ts
|
|
@@ -25,7 +25,7 @@ declare function SuspenseQueries<T extends any[]>({
|
|
|
25
25
|
}: {
|
|
26
26
|
queries: readonly [...SuspenseQueriesOptions<T>];
|
|
27
27
|
children: (queries: SuspenseQueriesResults<T>) => ReactNode;
|
|
28
|
-
}):
|
|
28
|
+
}): react_jsx_runtime7.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { SuspenseQueries as t };
|
|
31
|
-
//# sourceMappingURL=SuspenseQueries-
|
|
31
|
+
//# sourceMappingURL=SuspenseQueries-qFfeHxxp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQueries-
|
|
1
|
+
{"version":3,"file":"SuspenseQueries-qFfeHxxp.d.cts","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,2 +1,2 @@
|
|
|
1
|
-
import { t as SuspenseQueries } from "./SuspenseQueries-
|
|
1
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-qFfeHxxp.cjs";
|
|
2
2
|
export { SuspenseQueries };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SuspenseQueries } from "./SuspenseQueries-
|
|
1
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-iahkpf8N.mjs";
|
|
2
2
|
export { SuspenseQueries };
|
package/dist/SuspenseQueries.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_objectWithoutProperties = require('./objectWithoutProperties-
|
|
1
|
+
const require_objectWithoutProperties = require('./objectWithoutProperties-BqF6LYLG.cjs');
|
|
2
2
|
let __tanstack_react_query = require("@tanstack/react-query");
|
|
3
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
|
|
@@ -32,4 +32,4 @@ Object.defineProperty(exports, 'SuspenseQuery', {
|
|
|
32
32
|
return SuspenseQuery;
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
//# sourceMappingURL=SuspenseQuery
|
|
35
|
+
//# sourceMappingURL=SuspenseQuery--nIIoDt1.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQuery
|
|
1
|
+
{"version":3,"file":"SuspenseQuery--nIIoDt1.cjs","names":[],"sources":["../src/SuspenseQuery.tsx"],"sourcesContent":["'use client'\n\nimport {\n type QueryKey,\n type UseSuspenseQueryOptions,\n type UseSuspenseQueryResult,\n useSuspenseQuery,\n} 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 * `<SuspenseQuery/>` serves to make `useSuspenseQuery` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseQuery Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseQuery } from '@suspensive/react-query'\n *\n * // You can use QueryOptions as props.\n * <SuspenseQuery {...queryOptions()}>\n * {({ data, isLoading }) => {\n * return <></>\n * }\n * </SuspenseQuery>\n * ```\n */\nexport const SuspenseQuery = <\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>({\n children,\n ...options\n}: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n children: (queryResult: UseSuspenseQueryResult<TData, TError>) => ReactNode\n}) => <>{children(useSuspenseQuery(options))}</>\n"],"mappings":";;;;;mBAgCE;;;;;;;;;;;;;;;;;AANF,MAAa,iBAKX,SAKI;KALJ,EACA;AAII,2FAAG,gIAAkC,CAAC,GAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _objectWithoutProperties } from "./objectWithoutProperties-
|
|
1
|
+
import { t as _objectWithoutProperties } from "./objectWithoutProperties-Drlt06jT.mjs";
|
|
2
2
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
3
3
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -27,4 +27,4 @@ const SuspenseQuery = (_ref) => {
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
export { SuspenseQuery as t };
|
|
30
|
-
//# sourceMappingURL=SuspenseQuery-
|
|
30
|
+
//# sourceMappingURL=SuspenseQuery-CgN3lrzL.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseQuery-CgN3lrzL.mjs","names":[],"sources":["../src/SuspenseQuery.tsx"],"sourcesContent":["'use client'\n\nimport {\n type QueryKey,\n type UseSuspenseQueryOptions,\n type UseSuspenseQueryResult,\n useSuspenseQuery,\n} 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 * `<SuspenseQuery/>` serves to make `useSuspenseQuery` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseQuery Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseQuery } from '@suspensive/react-query'\n *\n * // You can use QueryOptions as props.\n * <SuspenseQuery {...queryOptions()}>\n * {({ data, isLoading }) => {\n * return <></>\n * }\n * </SuspenseQuery>\n * ```\n */\nexport const SuspenseQuery = <\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>({\n children,\n ...options\n}: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n children: (queryResult: UseSuspenseQueryResult<TData, TError>) => ReactNode\n}) => <>{children(useSuspenseQuery(options))}</>\n"],"mappings":";;;;;mBAgCE;;;;;;;;;;;;;;;;;AANF,MAAa,iBAKX,SAKI;KALJ,EACA;AAII,kDAAG,SAAS,2DAAyB,CAAC,GAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/SuspenseQuery.d.ts
|
|
@@ -25,7 +25,7 @@ declare const SuspenseQuery: <TQueryFnData = unknown, TError = unknown, TData =
|
|
|
25
25
|
...options
|
|
26
26
|
}: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
27
27
|
children: (queryResult: UseSuspenseQueryResult<TData, TError>) => ReactNode;
|
|
28
|
-
}) =>
|
|
28
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { SuspenseQuery as t };
|
|
31
|
-
//# sourceMappingURL=SuspenseQuery-
|
|
31
|
+
//# sourceMappingURL=SuspenseQuery-VjYG_b1z.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseQuery-VjYG_b1z.d.mts","names":[],"sources":["../src/SuspenseQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AA0BA;;;;;;;;;;;;;AASoE,cATvD,aASuD,EAAA,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAN1D,YAM0D,EAAA,kBALhD,QAKgD,GALrC,QAKqC,CAAA,CAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EADjE,uBACiE,CADzC,YACyC,EAD3B,MAC2B,EADnB,KACmB,EADZ,SACY,CAAA,GAAA;EACnE,QAAA,EAAA,CAAA,WAAA,EADyB,sBACzB,CADgD,KAChD,EADuD,MACvD,CAAA,EAAA,GADmE,SACnE;CAA+C,EAAA,GAA/C,kBAAA,CAAA,GAAA,CAAA,OAA+C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
import { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@ declare const SuspenseQuery: <TQueryFnData = unknown, TError = unknown, TData =
|
|
|
25
25
|
...options
|
|
26
26
|
}: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
27
27
|
children: (queryResult: UseSuspenseQueryResult<TData, TError>) => ReactNode;
|
|
28
|
-
}) =>
|
|
28
|
+
}) => react_jsx_runtime1.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { SuspenseQuery as t };
|
|
31
|
-
//# sourceMappingURL=SuspenseQuery-
|
|
31
|
+
//# sourceMappingURL=SuspenseQuery-dE_OqtUB.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseQuery-dE_OqtUB.d.cts","names":[],"sources":["../src/SuspenseQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AA0BA;;;;;;;;;;;;;AASoE,cATvD,aASuD,EAAA,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAN1D,YAM0D,EAAA,kBALhD,QAKgD,GALrC,QAKqC,CAAA,CAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EADjE,uBACiE,CADzC,YACyC,EAD3B,MAC2B,EADnB,KACmB,EADZ,SACY,CAAA,GAAA;EACnE,QAAA,EAAA,CAAA,WAAA,EADyB,sBACzB,CADgD,KAChD,EADuD,MACvD,CAAA,EAAA,GADmE,SACnE;CAA+C,EAAA,GAA/C,kBAAA,CAAA,GAAA,CAAA,OAA+C"}
|
package/dist/SuspenseQuery.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
require('./objectWithoutProperties-DjGVB1dZ.cjs');
|
|
5
|
-
const require_SuspenseQuery = require('./SuspenseQuery-B-SvR9l0.cjs');
|
|
3
|
+
const require_SuspenseQuery = require('./SuspenseQuery--nIIoDt1.cjs');
|
|
6
4
|
|
|
7
5
|
exports.SuspenseQuery = require_SuspenseQuery.SuspenseQuery;
|
package/dist/SuspenseQuery.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SuspenseQuery } from "./SuspenseQuery-
|
|
1
|
+
import { t as SuspenseQuery } from "./SuspenseQuery-dE_OqtUB.cjs";
|
|
2
2
|
export { SuspenseQuery };
|
package/dist/SuspenseQuery.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SuspenseQuery } from "./SuspenseQuery-
|
|
1
|
+
import { t as SuspenseQuery } from "./SuspenseQuery-VjYG_b1z.mjs";
|
|
2
2
|
export { SuspenseQuery };
|
package/dist/SuspenseQuery.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ClientOnly.d.ts
|
|
4
4
|
declare const ClientOnly: ({
|
|
@@ -7,7 +7,7 @@ declare const ClientOnly: ({
|
|
|
7
7
|
}: {
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
fallback: React.ReactNode;
|
|
10
|
-
}) =>
|
|
10
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ClientOnly };
|
|
13
13
|
//# sourceMappingURL=ClientOnly.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _objectSpread2 } from "./objectSpread2-
|
|
1
|
+
import { t as _objectSpread2 } from "./objectSpread2-BFPIJj0i.mjs";
|
|
2
2
|
import { QueryClient, isServer } from "@tanstack/react-query";
|
|
3
3
|
|
|
4
4
|
//#region src/createGetQueryClient.ts
|
|
@@ -60,4 +60,4 @@ function createGetQueryClient(config = {}) {
|
|
|
60
60
|
|
|
61
61
|
//#endregion
|
|
62
62
|
export { createGetQueryClient as t };
|
|
63
|
-
//# sourceMappingURL=createGetQueryClient-
|
|
63
|
+
//# sourceMappingURL=createGetQueryClient-B0yrcyXF.mjs.map
|
package/dist/{createGetQueryClient-DwJ6i2aT.mjs.map → createGetQueryClient-B0yrcyXF.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createGetQueryClient-
|
|
1
|
+
{"version":3,"file":"createGetQueryClient-B0yrcyXF.mjs","names":["browserQueryClient: QueryClient | undefined","getQueryClientConfig: QueryClientConfig"],"sources":["../src/createGetQueryClient.ts"],"sourcesContent":["import { QueryClient, type QueryClientConfig, isServer } from '@tanstack/react-query'\n\n/**\n * Creates a function that returns a QueryClient instance, with different behavior for server and client environments.\n *\n * On the server, it always creates a new QueryClient instance with `cacheTime: Infinity` to prevent data from being garbage collected.\n * On the client, it reuses the same QueryClient instance to avoid recreating it during React's initial render suspension.\n *\n * @experimental This component is experimental and may be changed or removed in the future.\n *\n * @param config - Optional QueryClient configuration. On the server, `cacheTime` will be automatically set to `Infinity`.\n * @returns An object containing a `getQueryClient` function that returns a QueryClient instance.\n *\n * @example\n * ```tsx\n * // Create a get-query-client.ts file in your project:\n * // get-query-client.ts\n * import { createGetQueryClient } from '@suspensive/react-query'\n *\n * export const { getQueryClient } = createGetQueryClient()\n *\n * @example\n * ```tsx\n * // Then import and use it in your code:\n * // app/providers.tsx\n * 'use client'\n *\n * import { QueryClientProvider } from '@tanstack/react-query'\n * import { ReactQueryDevtools } from '@tanstack/react-query-devtools'\n * import { getQueryClient } from '@/app/get-query-client'\n * import type * as React from 'react'\n *\n * export default function Providers({ children }: { children: React.ReactNode }) {\n * const queryClient = getQueryClient()\n *\n * return (\n * <QueryClientProvider client={queryClient}>\n * {children}\n * <ReactQueryDevtools />\n * </QueryClientProvider>\n * )\n * }\n * ```\n *\n * @see {@link https://suspensive.org/docs/react-query/createGetQueryClient Suspensive Docs}\n */\nexport function createGetQueryClient(config: QueryClientConfig = {}) {\n let browserQueryClient: QueryClient | undefined\n const getQueryClientConfig: QueryClientConfig = isServer\n ? {\n ...config,\n defaultOptions: {\n ...config.defaultOptions,\n queries: {\n ...config.defaultOptions?.queries,\n cacheTime: Infinity,\n },\n },\n }\n : config\n\n function getQueryClient() {\n if (isServer) {\n // Server: always make a new query client\n return new QueryClient(getQueryClientConfig)\n }\n // Browser: make a new query client if we don't already have one\n // This is very important, so we don't re-make a new client if React\n // suspends during the initial render. This may not be needed if we\n // have a suspense boundary BELOW the creation of the query client\n if (!browserQueryClient) {\n browserQueryClient = new QueryClient(getQueryClientConfig)\n }\n return browserQueryClient\n }\n\n return { getQueryClient }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,qBAAqB,SAA4B,EAAE,EAAE;;CACnE,IAAIA;CACJ,MAAMC,uBAA0C,6CAEvC,eACH,kDACK,OAAO,uBACV,oEACK,OAAO,8FAAgB,gBAC1B,WAAW,oBAIjB;CAEJ,SAAS,iBAAiB;AACxB,MAAI,SAEF,QAAO,IAAI,YAAY,qBAAqB;AAM9C,MAAI,CAAC,mBACH,sBAAqB,IAAI,YAAY,qBAAqB;AAE5D,SAAO;;AAGT,QAAO,EAAE,gBAAgB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_objectSpread2 = require('./objectSpread2-
|
|
1
|
+
const require_objectSpread2 = require('./objectSpread2-CpqxxdM2.cjs');
|
|
2
2
|
let __tanstack_react_query = require("@tanstack/react-query");
|
|
3
3
|
|
|
4
4
|
//#region src/createGetQueryClient.ts
|
|
@@ -65,4 +65,4 @@ Object.defineProperty(exports, 'createGetQueryClient', {
|
|
|
65
65
|
return createGetQueryClient;
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
//# sourceMappingURL=createGetQueryClient-
|
|
68
|
+
//# sourceMappingURL=createGetQueryClient-nXvPqrrS.cjs.map
|
package/dist/{createGetQueryClient-CNRrumkK.cjs.map → createGetQueryClient-nXvPqrrS.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createGetQueryClient-
|
|
1
|
+
{"version":3,"file":"createGetQueryClient-nXvPqrrS.cjs","names":["browserQueryClient: QueryClient | undefined","getQueryClientConfig: QueryClientConfig","isServer","QueryClient"],"sources":["../src/createGetQueryClient.ts"],"sourcesContent":["import { QueryClient, type QueryClientConfig, isServer } from '@tanstack/react-query'\n\n/**\n * Creates a function that returns a QueryClient instance, with different behavior for server and client environments.\n *\n * On the server, it always creates a new QueryClient instance with `cacheTime: Infinity` to prevent data from being garbage collected.\n * On the client, it reuses the same QueryClient instance to avoid recreating it during React's initial render suspension.\n *\n * @experimental This component is experimental and may be changed or removed in the future.\n *\n * @param config - Optional QueryClient configuration. On the server, `cacheTime` will be automatically set to `Infinity`.\n * @returns An object containing a `getQueryClient` function that returns a QueryClient instance.\n *\n * @example\n * ```tsx\n * // Create a get-query-client.ts file in your project:\n * // get-query-client.ts\n * import { createGetQueryClient } from '@suspensive/react-query'\n *\n * export const { getQueryClient } = createGetQueryClient()\n *\n * @example\n * ```tsx\n * // Then import and use it in your code:\n * // app/providers.tsx\n * 'use client'\n *\n * import { QueryClientProvider } from '@tanstack/react-query'\n * import { ReactQueryDevtools } from '@tanstack/react-query-devtools'\n * import { getQueryClient } from '@/app/get-query-client'\n * import type * as React from 'react'\n *\n * export default function Providers({ children }: { children: React.ReactNode }) {\n * const queryClient = getQueryClient()\n *\n * return (\n * <QueryClientProvider client={queryClient}>\n * {children}\n * <ReactQueryDevtools />\n * </QueryClientProvider>\n * )\n * }\n * ```\n *\n * @see {@link https://suspensive.org/docs/react-query/createGetQueryClient Suspensive Docs}\n */\nexport function createGetQueryClient(config: QueryClientConfig = {}) {\n let browserQueryClient: QueryClient | undefined\n const getQueryClientConfig: QueryClientConfig = isServer\n ? {\n ...config,\n defaultOptions: {\n ...config.defaultOptions,\n queries: {\n ...config.defaultOptions?.queries,\n cacheTime: Infinity,\n },\n },\n }\n : config\n\n function getQueryClient() {\n if (isServer) {\n // Server: always make a new query client\n return new QueryClient(getQueryClientConfig)\n }\n // Browser: make a new query client if we don't already have one\n // This is very important, so we don't re-make a new client if React\n // suspends during the initial render. This may not be needed if we\n // have a suspense boundary BELOW the creation of the query client\n if (!browserQueryClient) {\n browserQueryClient = new QueryClient(getQueryClientConfig)\n }\n return browserQueryClient\n }\n\n return { getQueryClient }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,qBAAqB,SAA4B,EAAE,EAAE;;CACnE,IAAIA;CACJ,MAAMC,uBAA0CC,gHAEvC,eACH,8FACK,OAAO,uBACV,gHACK,OAAO,8FAAgB,gBAC1B,WAAW,oBAIjB;CAEJ,SAAS,iBAAiB;AACxB,MAAIA,gCAEF,QAAO,IAAIC,mCAAY,qBAAqB;AAM9C,MAAI,CAAC,mBACH,sBAAqB,IAAIA,mCAAY,qBAAqB;AAE5D,SAAO;;AAGT,QAAO,EAAE,gBAAgB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
const require_createGetQueryClient = require('./createGetQueryClient-CNRrumkK.cjs');
|
|
1
|
+
const require_createGetQueryClient = require('./createGetQueryClient-nXvPqrrS.cjs');
|
|
3
2
|
|
|
4
3
|
exports.createGetQueryClient = require_createGetQueryClient.createGetQueryClient;
|
package/dist/index.cjs
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
const require_IsFetching = require('./IsFetching-BGIRMA6C.cjs');
|
|
2
|
-
require('./
|
|
3
|
-
const require_Mutation = require('./Mutation-B2H-fZYn.cjs');
|
|
2
|
+
const require_Mutation = require('./Mutation-BWER242k.cjs');
|
|
4
3
|
const require_usePrefetchInfiniteQuery = require('./usePrefetchInfiniteQuery-BmZtlLeD.cjs');
|
|
5
4
|
const require_PrefetchInfiniteQuery = require('./PrefetchInfiniteQuery-cCSXqKVR.cjs');
|
|
6
5
|
const require_usePrefetchQuery = require('./usePrefetchQuery-woiivAJc.cjs');
|
|
7
6
|
const require_PrefetchQuery = require('./PrefetchQuery-0pdYNtpS.cjs');
|
|
8
|
-
require('./
|
|
9
|
-
require('./objectSpread2-CGqp5tYf.cjs');
|
|
10
|
-
const require_QueriesHydration = require('./QueriesHydration-CQ5Lct-O.cjs');
|
|
7
|
+
const require_QueriesHydration = require('./QueriesHydration-BT0rn0KQ.cjs');
|
|
11
8
|
const require_QueryClientConsumer = require('./QueryClientConsumer-mF0OUwkq.cjs');
|
|
12
|
-
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-
|
|
9
|
+
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-Dq97Dear.cjs');
|
|
13
10
|
const require_SuspenseQueries = require('./SuspenseQueries-Brk6gtMw.cjs');
|
|
14
|
-
const require_SuspenseQuery = require('./SuspenseQuery
|
|
15
|
-
const require_createGetQueryClient = require('./createGetQueryClient-
|
|
11
|
+
const require_SuspenseQuery = require('./SuspenseQuery--nIIoDt1.cjs');
|
|
12
|
+
const require_createGetQueryClient = require('./createGetQueryClient-nXvPqrrS.cjs');
|
|
16
13
|
const require_infiniteQueryOptions = require('./infiniteQueryOptions-BVac5B-c.cjs');
|
|
17
14
|
const require_queryOptions = require('./queryOptions-92vSd4eV.cjs');
|
|
18
15
|
const require_useSuspenseInfiniteQuery = require('./useSuspenseInfiniteQuery-CA0jmgbX.cjs');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as IsFetching } from "./IsFetching-
|
|
2
|
-
import { t as Mutation } from "./Mutation-
|
|
3
|
-
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-
|
|
4
|
-
import { t as PrefetchQuery } from "./PrefetchQuery-
|
|
5
|
-
import { t as QueriesHydration } from "./QueriesHydration-
|
|
6
|
-
import { t as QueryClientConsumer } from "./QueryClientConsumer-
|
|
1
|
+
import { t as IsFetching } from "./IsFetching-BDzr-LPo.cjs";
|
|
2
|
+
import { t as Mutation } from "./Mutation-kNfR4Z34.cjs";
|
|
3
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-B176YxLR.cjs";
|
|
4
|
+
import { t as PrefetchQuery } from "./PrefetchQuery-UXE0XDb0.cjs";
|
|
5
|
+
import { t as QueriesHydration } from "./QueriesHydration-CZOIEBb-.cjs";
|
|
6
|
+
import { t as QueryClientConsumer } from "./QueryClientConsumer-CPUb7Jr6.cjs";
|
|
7
7
|
import { n as UseSuspenseInfiniteQueryResult, r as useSuspenseInfiniteQuery, t as UseSuspenseInfiniteQueryOptions } from "./useSuspenseInfiniteQuery-xXu-A7cX.cjs";
|
|
8
|
-
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-
|
|
9
|
-
import { t as SuspenseQueries } from "./SuspenseQueries-
|
|
10
|
-
import { t as SuspenseQuery } from "./SuspenseQuery-
|
|
8
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-DdnqEVHY.cjs";
|
|
9
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-qFfeHxxp.cjs";
|
|
10
|
+
import { t as SuspenseQuery } from "./SuspenseQuery-dE_OqtUB.cjs";
|
|
11
11
|
import { t as createGetQueryClient } from "./createGetQueryClient-iXoXO7so.cjs";
|
|
12
12
|
import { n as UnSelectedInfiniteOptions, r as infiniteQueryOptions, t as SelectedInfiniteOptions } from "./infiniteQueryOptions-Be7VYTUR.cjs";
|
|
13
13
|
import { n as UnSelectedQueryOptions, r as queryOptions, t as SelectedQueryOptions } from "./queryOptions-DNGHeGX5.cjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as IsFetching } from "./IsFetching-
|
|
1
|
+
import { t as IsFetching } from "./IsFetching-D3xmE2Kn.mjs";
|
|
2
2
|
import { t as Mutation } from "./Mutation-CGpbCg54.mjs";
|
|
3
|
-
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-
|
|
4
|
-
import { t as PrefetchQuery } from "./PrefetchQuery-
|
|
5
|
-
import { t as QueriesHydration } from "./QueriesHydration-
|
|
6
|
-
import { t as QueryClientConsumer } from "./QueryClientConsumer-
|
|
3
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-Dzjm5lf8.mjs";
|
|
4
|
+
import { t as PrefetchQuery } from "./PrefetchQuery-DfCIfLWZ.mjs";
|
|
5
|
+
import { t as QueriesHydration } from "./QueriesHydration-Bl02gjbZ.mjs";
|
|
6
|
+
import { t as QueryClientConsumer } from "./QueryClientConsumer-DJo29zBV.mjs";
|
|
7
7
|
import { n as UseSuspenseInfiniteQueryResult, r as useSuspenseInfiniteQuery, t as UseSuspenseInfiniteQueryOptions } from "./useSuspenseInfiniteQuery-Bh0nh8Kc.mjs";
|
|
8
|
-
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-
|
|
9
|
-
import { t as SuspenseQueries } from "./SuspenseQueries-
|
|
10
|
-
import { t as SuspenseQuery } from "./SuspenseQuery-
|
|
8
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-BeKUK5uX.mjs";
|
|
9
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-iahkpf8N.mjs";
|
|
10
|
+
import { t as SuspenseQuery } from "./SuspenseQuery-VjYG_b1z.mjs";
|
|
11
11
|
import { t as createGetQueryClient } from "./createGetQueryClient-DTKVVwpJ.mjs";
|
|
12
12
|
import { n as UnSelectedInfiniteOptions, r as infiniteQueryOptions, t as SelectedInfiniteOptions } from "./infiniteQueryOptions-Bpz4mFYH.mjs";
|
|
13
13
|
import { n as UnSelectedQueryOptions, r as queryOptions, t as SelectedQueryOptions } from "./queryOptions-DILe-4vk.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { t as IsFetching } from "./IsFetching-94upYqWP.mjs";
|
|
2
|
-
import "./
|
|
3
|
-
import { t as Mutation } from "./Mutation-Dh5n54P8.mjs";
|
|
2
|
+
import { t as Mutation } from "./Mutation-BJunfaUO.mjs";
|
|
4
3
|
import { t as usePrefetchInfiniteQuery } from "./usePrefetchInfiniteQuery-CQSN-P9m.mjs";
|
|
5
4
|
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-RS3Qz-7B.mjs";
|
|
6
5
|
import { t as usePrefetchQuery } from "./usePrefetchQuery-CtrJciA6.mjs";
|
|
7
6
|
import { t as PrefetchQuery } from "./PrefetchQuery-uh4idoXK.mjs";
|
|
8
|
-
import "./
|
|
9
|
-
import "./objectSpread2-BHq2muQo.mjs";
|
|
10
|
-
import { t as QueriesHydration } from "./QueriesHydration-D-iXKM2g.mjs";
|
|
7
|
+
import { t as QueriesHydration } from "./QueriesHydration-BvU3699s.mjs";
|
|
11
8
|
import { t as QueryClientConsumer } from "./QueryClientConsumer-e7PyaFF3.mjs";
|
|
12
|
-
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-
|
|
9
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-DwW5I_M2.mjs";
|
|
13
10
|
import { t as SuspenseQueries } from "./SuspenseQueries-C0mF_XD_.mjs";
|
|
14
|
-
import { t as SuspenseQuery } from "./SuspenseQuery-
|
|
15
|
-
import { t as createGetQueryClient } from "./createGetQueryClient-
|
|
11
|
+
import { t as SuspenseQuery } from "./SuspenseQuery-CgN3lrzL.mjs";
|
|
12
|
+
import { t as createGetQueryClient } from "./createGetQueryClient-B0yrcyXF.mjs";
|
|
16
13
|
import { t as infiniteQueryOptions } from "./infiniteQueryOptions-2KFmTqEY.mjs";
|
|
17
14
|
import { t as queryOptions } from "./queryOptions-Dnf4-wlk.mjs";
|
|
18
15
|
import { t as useSuspenseInfiniteQuery } from "./useSuspenseInfiniteQuery-DUxKOkCo.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -9,7 +9,7 @@ function _typeof(o) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/toPrimitive.js
|
|
13
13
|
function toPrimitive(t, r) {
|
|
14
14
|
if ("object" != _typeof(t) || !t) return t;
|
|
15
15
|
var e = t[Symbol.toPrimitive];
|
|
@@ -22,14 +22,14 @@ function toPrimitive(t, r) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region \0@oxc-project+runtime@0.
|
|
25
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/toPropertyKey.js
|
|
26
26
|
function toPropertyKey(t) {
|
|
27
27
|
var i = toPrimitive(t, "string");
|
|
28
28
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region \0@oxc-project+runtime@0.
|
|
32
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/defineProperty.js
|
|
33
33
|
function _defineProperty(e, r, t) {
|
|
34
34
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
35
35
|
value: t,
|
|
@@ -40,7 +40,7 @@ function _defineProperty(e, r, t) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region \0@oxc-project+runtime@0.
|
|
43
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/objectSpread2.js
|
|
44
44
|
function ownKeys(e, r) {
|
|
45
45
|
var t = Object.keys(e);
|
|
46
46
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/typeof.js
|
|
3
3
|
function _typeof(o) {
|
|
4
4
|
"@babel/helpers - typeof";
|
|
5
5
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
@@ -10,7 +10,7 @@ function _typeof(o) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region \0@oxc-project+runtime@0.
|
|
13
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/toPrimitive.js
|
|
14
14
|
function toPrimitive(t, r) {
|
|
15
15
|
if ("object" != _typeof(t) || !t) return t;
|
|
16
16
|
var e = t[Symbol.toPrimitive];
|
|
@@ -23,14 +23,14 @@ function toPrimitive(t, r) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region \0@oxc-project+runtime@0.
|
|
26
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/toPropertyKey.js
|
|
27
27
|
function toPropertyKey(t) {
|
|
28
28
|
var i = toPrimitive(t, "string");
|
|
29
29
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/defineProperty.js
|
|
34
34
|
function _defineProperty(e, r, t) {
|
|
35
35
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36
36
|
value: t,
|
|
@@ -41,7 +41,7 @@ function _defineProperty(e, r, t) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region \0@oxc-project+runtime@0.
|
|
44
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/objectSpread2.js
|
|
45
45
|
function ownKeys(e, r) {
|
|
46
46
|
var t = Object.keys(e);
|
|
47
47
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/objectWithoutPropertiesLoose.js
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
4
4
|
if (null == r) return {};
|
|
5
5
|
var t = {};
|
|
@@ -11,7 +11,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region \0@oxc-project+runtime@0.
|
|
14
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/objectWithoutProperties.js
|
|
15
15
|
function _objectWithoutProperties(e, t) {
|
|
16
16
|
if (null == e) return {};
|
|
17
17
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/objectWithoutPropertiesLoose.js
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3
3
|
if (null == r) return {};
|
|
4
4
|
var t = {};
|
|
@@ -10,7 +10,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region \0@oxc-project+runtime@0.
|
|
13
|
+
//#region \0@oxc-project+runtime@0.101.0/helpers/objectWithoutProperties.js
|
|
14
14
|
function _objectWithoutProperties(e, t) {
|
|
15
15
|
if (null == e) return {};
|
|
16
16
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|