@suspensive/react-query-4 3.19.1 → 3.19.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-BYkNw1cs.mjs +18 -0
- package/dist/IsFetching-BYkNw1cs.mjs.map +1 -0
- package/dist/{IsFetching-D3xmE2Kn.d.mts → IsFetching-BfIQ3Qek.d.mts} +5 -2
- package/dist/IsFetching-BfIQ3Qek.d.mts.map +1 -0
- package/dist/IsFetching-BhOgGqrs.cjs +23 -0
- package/dist/IsFetching-BhOgGqrs.cjs.map +1 -0
- package/dist/{IsFetching-CThOxeZB.d.cts → IsFetching-CuftXnaJ.d.cts} +7 -4
- package/dist/IsFetching-CuftXnaJ.d.cts.map +1 -0
- package/dist/IsFetching.cjs +1 -1
- package/dist/IsFetching.d.cts +1 -1
- package/dist/IsFetching.d.mts +1 -1
- package/dist/IsFetching.mjs +1 -1
- package/dist/{Mutation-BWER242k.cjs → Mutation-CGUYEkKX.cjs} +2 -2
- package/dist/{Mutation-BWER242k.cjs.map → Mutation-CGUYEkKX.cjs.map} +1 -1
- package/dist/{Mutation-Dt5kUsd8.d.cts → Mutation-DGmP7HQI.d.cts} +3 -3
- package/dist/{Mutation-Dt5kUsd8.d.cts.map → Mutation-DGmP7HQI.d.cts.map} +1 -1
- package/dist/{Mutation-BJunfaUO.mjs → Mutation-DUJhz3rT.mjs} +2 -2
- package/dist/{Mutation-BJunfaUO.mjs.map → Mutation-DUJhz3rT.mjs.map} +1 -1
- package/dist/Mutation.cjs +1 -1
- package/dist/Mutation.d.cts +1 -1
- package/dist/Mutation.mjs +1 -1
- package/dist/{PrefetchInfiniteQuery-Dzjm5lf8.d.mts → PrefetchInfiniteQuery-BewcG5rR.d.cts} +3 -3
- package/dist/{PrefetchInfiniteQuery-DgZfL2Sb.d.cts.map → PrefetchInfiniteQuery-BewcG5rR.d.cts.map} +1 -1
- package/dist/{PrefetchInfiniteQuery-DgZfL2Sb.d.cts → PrefetchInfiniteQuery-D-3dZMEz.d.mts} +3 -3
- package/dist/{PrefetchInfiniteQuery-Dzjm5lf8.d.mts.map → PrefetchInfiniteQuery-D-3dZMEz.d.mts.map} +1 -1
- package/dist/PrefetchInfiniteQuery.d.cts +1 -1
- package/dist/PrefetchInfiniteQuery.d.mts +1 -1
- package/dist/{PrefetchQuery-CeQ0yxDL.d.cts → PrefetchQuery-Ddbt43Fk.d.cts} +3 -3
- package/dist/{PrefetchQuery-CeQ0yxDL.d.cts.map → PrefetchQuery-Ddbt43Fk.d.cts.map} +1 -1
- package/dist/{PrefetchQuery-DAqAWOeP.d.mts → PrefetchQuery-DqgbVdjY.d.mts} +3 -3
- package/dist/{PrefetchQuery-DAqAWOeP.d.mts.map → PrefetchQuery-DqgbVdjY.d.mts.map} +1 -1
- package/dist/PrefetchQuery.d.cts +1 -1
- package/dist/PrefetchQuery.d.mts +1 -1
- package/dist/{QueriesHydration-B89HKn9y.d.cts → QueriesHydration-DPogKsc4.d.mts} +3 -3
- package/dist/{QueriesHydration-B89HKn9y.d.cts.map → QueriesHydration-DPogKsc4.d.mts.map} +1 -1
- package/dist/{QueriesHydration-BeMkJU3l.d.mts → QueriesHydration-DnlRrHJ3.d.cts} +3 -3
- package/dist/{QueriesHydration-BeMkJU3l.d.mts.map → QueriesHydration-DnlRrHJ3.d.cts.map} +1 -1
- package/dist/{QueriesHydration-27lFZeB8.mjs → QueriesHydration-GQxJe_Vu.mjs} +2 -2
- package/dist/{QueriesHydration-27lFZeB8.mjs.map → QueriesHydration-GQxJe_Vu.mjs.map} +1 -1
- package/dist/{QueriesHydration-BYKU-Mte.cjs → QueriesHydration-dcSAzQNT.cjs} +2 -2
- package/dist/{QueriesHydration-BYKU-Mte.cjs.map → QueriesHydration-dcSAzQNT.cjs.map} +1 -1
- package/dist/QueriesHydration.cjs +1 -1
- package/dist/QueriesHydration.d.cts +1 -1
- package/dist/QueriesHydration.d.mts +1 -1
- package/dist/QueriesHydration.mjs +1 -1
- package/dist/{QueryClientConsumer-D3h25GmM.d.cts → QueryClientConsumer-5PZLv_8g.d.mts} +2 -2
- package/dist/{QueryClientConsumer-D3h25GmM.d.cts.map → QueryClientConsumer-5PZLv_8g.d.mts.map} +1 -1
- package/dist/{QueryClientConsumer-DNkucS1e.d.mts → QueryClientConsumer-pihgMOoA.d.cts} +3 -3
- package/dist/{QueryClientConsumer-DNkucS1e.d.mts.map → QueryClientConsumer-pihgMOoA.d.cts.map} +1 -1
- package/dist/QueryClientConsumer.d.cts +1 -1
- package/dist/QueryClientConsumer.d.mts +1 -1
- package/dist/{SuspenseInfiniteQuery-DwW5I_M2.mjs → SuspenseInfiniteQuery-BimBkaCe.mjs} +2 -2
- package/dist/{SuspenseInfiniteQuery-DwW5I_M2.mjs.map → SuspenseInfiniteQuery-BimBkaCe.mjs.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-CSd2Hyym.d.mts → SuspenseInfiniteQuery-BtRviR-Z.d.mts} +3 -3
- package/dist/{SuspenseInfiniteQuery-Bt7GeiHi.d.cts.map → SuspenseInfiniteQuery-BtRviR-Z.d.mts.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-Bt7GeiHi.d.cts → SuspenseInfiniteQuery-DSYC5XON.d.cts} +3 -3
- package/dist/{SuspenseInfiniteQuery-CSd2Hyym.d.mts.map → SuspenseInfiniteQuery-DSYC5XON.d.cts.map} +1 -1
- package/dist/{SuspenseInfiniteQuery-Dq97Dear.cjs → SuspenseInfiniteQuery-oVQE2P2T.cjs} +2 -2
- package/dist/{SuspenseInfiniteQuery-Dq97Dear.cjs.map → SuspenseInfiniteQuery-oVQE2P2T.cjs.map} +1 -1
- package/dist/SuspenseInfiniteQuery.cjs +1 -1
- package/dist/SuspenseInfiniteQuery.d.cts +1 -1
- package/dist/SuspenseInfiniteQuery.d.mts +1 -1
- package/dist/SuspenseInfiniteQuery.mjs +1 -1
- package/dist/{SuspenseQueries-CF_WoDIW.d.mts → SuspenseQueries-BPvriygJ.d.cts} +3 -3
- package/dist/{SuspenseQueries-B-UR1dnn.d.cts.map → SuspenseQueries-BPvriygJ.d.cts.map} +1 -1
- package/dist/{SuspenseQueries-B-UR1dnn.d.cts → SuspenseQueries-CHFS9e4y.d.mts} +3 -3
- package/dist/{SuspenseQueries-CF_WoDIW.d.mts.map → SuspenseQueries-CHFS9e4y.d.mts.map} +1 -1
- package/dist/SuspenseQueries.d.cts +1 -1
- package/dist/SuspenseQueries.d.mts +1 -1
- package/dist/{SuspenseQuery-CgN3lrzL.mjs → SuspenseQuery-BWI24top.mjs} +2 -2
- package/dist/{SuspenseQuery-CgN3lrzL.mjs.map → SuspenseQuery-BWI24top.mjs.map} +1 -1
- package/dist/{SuspenseQuery-BZ20Rsoo.d.mts → SuspenseQuery-D4IZU_Co.d.cts} +3 -3
- package/dist/{SuspenseQuery-BKoPQQ_o.d.cts.map → SuspenseQuery-D4IZU_Co.d.cts.map} +1 -1
- package/dist/{SuspenseQuery--nIIoDt1.cjs → SuspenseQuery-DE4NKrqP.cjs} +2 -2
- package/dist/{SuspenseQuery--nIIoDt1.cjs.map → SuspenseQuery-DE4NKrqP.cjs.map} +1 -1
- package/dist/{SuspenseQuery-BKoPQQ_o.d.cts → SuspenseQuery-VjYG_b1z.d.mts} +3 -3
- package/dist/{SuspenseQuery-BZ20Rsoo.d.mts.map → SuspenseQuery-VjYG_b1z.d.mts.map} +1 -1
- package/dist/SuspenseQuery.cjs +1 -1
- package/dist/SuspenseQuery.d.cts +1 -1
- package/dist/SuspenseQuery.d.mts +1 -1
- package/dist/SuspenseQuery.mjs +1 -1
- package/dist/components/ClientOnly.d.mts +2 -2
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
- package/src/IsFetching.spec.tsx +34 -0
- package/src/IsFetching.tsx +3 -1
- package/dist/IsFetching-94upYqWP.mjs +0 -12
- package/dist/IsFetching-94upYqWP.mjs.map +0 -1
- package/dist/IsFetching-BGIRMA6C.cjs +0 -17
- package/dist/IsFetching-BGIRMA6C.cjs.map +0 -1
- package/dist/IsFetching-CThOxeZB.d.cts.map +0 -1
- package/dist/IsFetching-D3xmE2Kn.d.mts.map +0 -1
- /package/dist/{objectWithoutProperties-Drlt06jT.mjs → objectWithoutProperties-BYP50gyF.mjs} +0 -0
- /package/dist/{objectWithoutProperties-BqF6LYLG.cjs → objectWithoutProperties-CYXRK7DS.cjs} +0 -0
package/dist/{SuspenseInfiniteQuery-Bt7GeiHi.d.cts.map → SuspenseInfiniteQuery-BtRviR-Z.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseInfiniteQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-BtRviR-Z.d.mts","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AAqBA;;;;;;;;;;;;;AASsE,cATzD,qBASyD,EAAA,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAN5D,YAM4D,EAAA,kBALlD,QAKkD,GALvC,QAKuC,CAAA,CAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EADnE,+BACmE,CADnC,YACmC,EADrB,MACqB,EADb,KACa,EADN,SACM,CAAA,GAAA;EACrE,QAAA,EAAA,CAAA,KAAA,EADmB,8BACnB,CADkD,KAClD,EADyD,MACzD,CAAA,EAAA,GADqE,SACrE;CAAuD,EAAA,GAAvD,kBAAA,CAAA,GAAA,CAAA,OAAuD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as UseSuspenseInfiniteQueryOptions } from "./useSuspenseInfiniteQuery-xXu-A7cX.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import { QueryKey, UseSuspenseInfiniteQueryResult } from "@tanstack/react-query";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
|
|
@@ -26,7 +26,7 @@ declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown,
|
|
|
26
26
|
...options
|
|
27
27
|
}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
28
28
|
children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
|
|
29
|
-
}) =>
|
|
29
|
+
}) => react_jsx_runtime5.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { SuspenseInfiniteQuery as t };
|
|
32
|
-
//# sourceMappingURL=SuspenseInfiniteQuery-
|
|
32
|
+
//# sourceMappingURL=SuspenseInfiniteQuery-DSYC5XON.d.cts.map
|
package/dist/{SuspenseInfiniteQuery-CSd2Hyym.d.mts.map → SuspenseInfiniteQuery-DSYC5XON.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseInfiniteQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-DSYC5XON.d.cts","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AAqBA;;;;;;;;;;;;;AASsE,cATzD,qBASyD,EAAA,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAN5D,YAM4D,EAAA,kBALlD,QAKkD,GALvC,QAKuC,CAAA,CAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EADnE,+BACmE,CADnC,YACmC,EADrB,MACqB,EADb,KACa,EADN,SACM,CAAA,GAAA;EACrE,QAAA,EAAA,CAAA,KAAA,EADmB,8BACnB,CADkD,KAClD,EADyD,MACzD,CAAA,EAAA,GADqE,SACrE;CAAuD,EAAA,GAAvD,kBAAA,CAAA,GAAA,CAAA,OAAuD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_objectWithoutProperties = require('./objectWithoutProperties-
|
|
1
|
+
const require_objectWithoutProperties = require('./objectWithoutProperties-CYXRK7DS.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-oVQE2P2T.cjs.map
|
package/dist/{SuspenseInfiniteQuery-Dq97Dear.cjs.map → SuspenseInfiniteQuery-oVQE2P2T.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseInfiniteQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseInfiniteQuery-oVQE2P2T.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,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-
|
|
3
|
+
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-oVQE2P2T.cjs');
|
|
4
4
|
|
|
5
5
|
exports.SuspenseInfiniteQuery = require_SuspenseInfiniteQuery.SuspenseInfiniteQuery;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-
|
|
1
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-DSYC5XON.cjs";
|
|
2
2
|
export { SuspenseInfiniteQuery };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
1
2
|
import { SuspenseQueriesOptions, SuspenseQueriesResults } from "@tanstack/react-query";
|
|
2
|
-
import * as react_jsx_runtime6 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_runtime3.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { SuspenseQueries as t };
|
|
31
|
-
//# sourceMappingURL=SuspenseQueries-
|
|
31
|
+
//# sourceMappingURL=SuspenseQueries-BPvriygJ.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQueries-
|
|
1
|
+
{"version":3,"file":"SuspenseQueries-BPvriygJ.d.cts","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_runtime6 from "react/jsx-runtime";
|
|
2
1
|
import { SuspenseQueriesOptions, SuspenseQueriesResults } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime1 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_runtime1.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { SuspenseQueries as t };
|
|
31
|
-
//# sourceMappingURL=SuspenseQueries-
|
|
31
|
+
//# sourceMappingURL=SuspenseQueries-CHFS9e4y.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQueries-
|
|
1
|
+
{"version":3,"file":"SuspenseQueries-CHFS9e4y.d.mts","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAoBA;;;;;;;;;;;;iBAAgB;;;;wBAIQ,uBAAuB;sBACzB,uBAAuB,OAAO;IACnD,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SuspenseQueries } from "./SuspenseQueries-
|
|
1
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-BPvriygJ.cjs";
|
|
2
2
|
export { SuspenseQueries };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SuspenseQueries } from "./SuspenseQueries-
|
|
1
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-CHFS9e4y.mjs";
|
|
2
2
|
export { SuspenseQueries };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _objectWithoutProperties } from "./objectWithoutProperties-
|
|
1
|
+
import { t as _objectWithoutProperties } from "./objectWithoutProperties-BYP50gyF.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-BWI24top.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseQuery-BWI24top.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
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
1
2
|
import { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
2
|
-
import * as react_jsx_runtime7 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_runtime4.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { SuspenseQuery as t };
|
|
31
|
-
//# sourceMappingURL=SuspenseQuery-
|
|
31
|
+
//# sourceMappingURL=SuspenseQuery-D4IZU_Co.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQuery-
|
|
1
|
+
{"version":3,"file":"SuspenseQuery-D4IZU_Co.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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_objectWithoutProperties = require('./objectWithoutProperties-
|
|
1
|
+
const require_objectWithoutProperties = require('./objectWithoutProperties-CYXRK7DS.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-DE4NKrqP.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuspenseQuery
|
|
1
|
+
{"version":3,"file":"SuspenseQuery-DE4NKrqP.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,5 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
1
|
import { QueryKey, UseSuspenseQueryOptions, UseSuspenseQueryResult } 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/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"}
|
package/dist/SuspenseQuery.cjs
CHANGED
package/dist/SuspenseQuery.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SuspenseQuery } from "./SuspenseQuery-
|
|
1
|
+
import { t as SuspenseQuery } from "./SuspenseQuery-D4IZU_Co.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_runtime6 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_runtime6.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ClientOnly };
|
|
13
13
|
//# sourceMappingURL=ClientOnly.d.mts.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const require_IsFetching = require('./IsFetching-
|
|
2
|
-
const require_Mutation = require('./Mutation-
|
|
1
|
+
const require_IsFetching = require('./IsFetching-BhOgGqrs.cjs');
|
|
2
|
+
const require_Mutation = require('./Mutation-CGUYEkKX.cjs');
|
|
3
3
|
const require_usePrefetchInfiniteQuery = require('./usePrefetchInfiniteQuery-BmZtlLeD.cjs');
|
|
4
4
|
const require_PrefetchInfiniteQuery = require('./PrefetchInfiniteQuery-cCSXqKVR.cjs');
|
|
5
5
|
const require_usePrefetchQuery = require('./usePrefetchQuery-woiivAJc.cjs');
|
|
6
6
|
const require_PrefetchQuery = require('./PrefetchQuery-0pdYNtpS.cjs');
|
|
7
|
-
const require_QueriesHydration = require('./QueriesHydration-
|
|
7
|
+
const require_QueriesHydration = require('./QueriesHydration-dcSAzQNT.cjs');
|
|
8
8
|
const require_QueryClientConsumer = require('./QueryClientConsumer-mF0OUwkq.cjs');
|
|
9
|
-
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-
|
|
9
|
+
const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-oVQE2P2T.cjs');
|
|
10
10
|
const require_SuspenseQueries = require('./SuspenseQueries-Brk6gtMw.cjs');
|
|
11
|
-
const require_SuspenseQuery = require('./SuspenseQuery
|
|
11
|
+
const require_SuspenseQuery = require('./SuspenseQuery-DE4NKrqP.cjs');
|
|
12
12
|
const require_createGetQueryClient = require('./createGetQueryClient-nXvPqrrS.cjs');
|
|
13
13
|
const require_infiniteQueryOptions = require('./infiniteQueryOptions-BVac5B-c.cjs');
|
|
14
14
|
const require_queryOptions = require('./queryOptions-92vSd4eV.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-CuftXnaJ.cjs";
|
|
2
|
+
import { t as Mutation } from "./Mutation-DGmP7HQI.cjs";
|
|
3
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-BewcG5rR.cjs";
|
|
4
|
+
import { t as PrefetchQuery } from "./PrefetchQuery-Ddbt43Fk.cjs";
|
|
5
|
+
import { t as QueriesHydration } from "./QueriesHydration-DnlRrHJ3.cjs";
|
|
6
|
+
import { t as QueryClientConsumer } from "./QueryClientConsumer-pihgMOoA.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-DSYC5XON.cjs";
|
|
9
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-BPvriygJ.cjs";
|
|
10
|
+
import { t as SuspenseQuery } from "./SuspenseQuery-D4IZU_Co.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-BfIQ3Qek.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-D-3dZMEz.mjs";
|
|
4
|
+
import { t as PrefetchQuery } from "./PrefetchQuery-DqgbVdjY.mjs";
|
|
5
|
+
import { t as QueriesHydration } from "./QueriesHydration-DPogKsc4.mjs";
|
|
6
|
+
import { t as QueryClientConsumer } from "./QueryClientConsumer-5PZLv_8g.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-BtRviR-Z.mjs";
|
|
9
|
+
import { t as SuspenseQueries } from "./SuspenseQueries-CHFS9e4y.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,14 +1,14 @@
|
|
|
1
|
-
import { t as IsFetching } from "./IsFetching-
|
|
2
|
-
import { t as Mutation } from "./Mutation-
|
|
1
|
+
import { t as IsFetching } from "./IsFetching-BYkNw1cs.mjs";
|
|
2
|
+
import { t as Mutation } from "./Mutation-DUJhz3rT.mjs";
|
|
3
3
|
import { t as usePrefetchInfiniteQuery } from "./usePrefetchInfiniteQuery-CQSN-P9m.mjs";
|
|
4
4
|
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-RS3Qz-7B.mjs";
|
|
5
5
|
import { t as usePrefetchQuery } from "./usePrefetchQuery-CtrJciA6.mjs";
|
|
6
6
|
import { t as PrefetchQuery } from "./PrefetchQuery-uh4idoXK.mjs";
|
|
7
|
-
import { t as QueriesHydration } from "./QueriesHydration-
|
|
7
|
+
import { t as QueriesHydration } from "./QueriesHydration-GQxJe_Vu.mjs";
|
|
8
8
|
import { t as QueryClientConsumer } from "./QueryClientConsumer-e7PyaFF3.mjs";
|
|
9
|
-
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-
|
|
9
|
+
import { t as SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-BimBkaCe.mjs";
|
|
10
10
|
import { t as SuspenseQueries } from "./SuspenseQueries-C0mF_XD_.mjs";
|
|
11
|
-
import { t as SuspenseQuery } from "./SuspenseQuery-
|
|
11
|
+
import { t as SuspenseQuery } from "./SuspenseQuery-BWI24top.mjs";
|
|
12
12
|
import { t as createGetQueryClient } from "./createGetQueryClient-B0yrcyXF.mjs";
|
|
13
13
|
import { t as infiniteQueryOptions } from "./infiniteQueryOptions-2KFmTqEY.mjs";
|
|
14
14
|
import { t as queryOptions } from "./queryOptions-Dnf4-wlk.mjs";
|
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react'
|
|
2
|
+
import { afterEach, describe, expect, it, vi } from 'vitest'
|
|
3
|
+
import { IsFetching } from './IsFetching'
|
|
4
|
+
|
|
5
|
+
const { useIsFetchingMock } = vi.hoisted(() => ({
|
|
6
|
+
useIsFetchingMock: vi.fn(() => 0),
|
|
7
|
+
}))
|
|
8
|
+
|
|
9
|
+
vi.mock('@tanstack/react-query', async () => {
|
|
10
|
+
const actual = await vi.importActual('@tanstack/react-query')
|
|
11
|
+
return {
|
|
12
|
+
...actual,
|
|
13
|
+
useIsFetching: useIsFetchingMock,
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
describe('<IsFetching/>', () => {
|
|
18
|
+
afterEach(() => {
|
|
19
|
+
useIsFetchingMock.mockReset()
|
|
20
|
+
useIsFetchingMock.mockReturnValue(0)
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
it('should forward query filters to useIsFetching', () => {
|
|
24
|
+
useIsFetchingMock.mockReturnValue(7)
|
|
25
|
+
|
|
26
|
+
render(
|
|
27
|
+
<IsFetching queryKey={['todos']}>{(isFetching) => <div data-testid="is-fetching">{isFetching}</div>}</IsFetching>
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
expect(useIsFetchingMock).toHaveBeenCalledTimes(1)
|
|
31
|
+
expect(useIsFetchingMock).toHaveBeenCalledWith({ queryKey: ['todos'] })
|
|
32
|
+
expect(screen.getByTestId('is-fetching')).toHaveTextContent('7')
|
|
33
|
+
})
|
|
34
|
+
})
|
package/src/IsFetching.tsx
CHANGED
|
@@ -4,10 +4,12 @@ import { type QueryFilters, useIsFetching } from '@tanstack/react-query'
|
|
|
4
4
|
import type { ReactNode } from 'react'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* Renders the current fetching count for queries that match the given filters.
|
|
7
8
|
* @experimental This is an experimental feature.
|
|
8
9
|
*/
|
|
9
10
|
export const IsFetching = ({
|
|
10
11
|
children,
|
|
12
|
+
...filter
|
|
11
13
|
}: QueryFilters & { children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode }) => (
|
|
12
|
-
<>{children(useIsFetching())}</>
|
|
14
|
+
<>{children(useIsFetching(filter))}</>
|
|
13
15
|
)
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useIsFetching } from "@tanstack/react-query";
|
|
2
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/IsFetching.tsx
|
|
5
|
-
/**
|
|
6
|
-
* @experimental This is an experimental feature.
|
|
7
|
-
*/
|
|
8
|
-
const IsFetching = ({ children }) => /* @__PURE__ */ jsx(Fragment, { children: children(useIsFetching()) });
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { IsFetching as t };
|
|
12
|
-
//# sourceMappingURL=IsFetching-94upYqWP.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsFetching-94upYqWP.mjs","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":["'use client'\n\nimport { type QueryFilters, useIsFetching } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * @experimental This is an experimental feature.\n */\nexport const IsFetching = ({\n children,\n}: QueryFilters & { children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode }) => (\n <>{children(useIsFetching())}</>\n)\n"],"mappings":";;;;;;;AAQA,MAAa,cAAc,EACzB,eAEA,0CAAG,SAAS,eAAe,CAAC,GAAI"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
let __tanstack_react_query = require("@tanstack/react-query");
|
|
2
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
-
|
|
4
|
-
//#region src/IsFetching.tsx
|
|
5
|
-
/**
|
|
6
|
-
* @experimental This is an experimental feature.
|
|
7
|
-
*/
|
|
8
|
-
const IsFetching = ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, __tanstack_react_query.useIsFetching)()) });
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
Object.defineProperty(exports, 'IsFetching', {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () {
|
|
14
|
-
return IsFetching;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=IsFetching-BGIRMA6C.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsFetching-BGIRMA6C.cjs","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":["'use client'\n\nimport { type QueryFilters, useIsFetching } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * @experimental This is an experimental feature.\n */\nexport const IsFetching = ({\n children,\n}: QueryFilters & { children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode }) => (\n <>{children(useIsFetching())}</>\n)\n"],"mappings":";;;;;;;AAQA,MAAa,cAAc,EACzB,eAEA,mFAAG,oDAAwB,CAAC,GAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsFetching-CThOxeZB.d.cts","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAQa,cAAA,UAIZ,EAAA,CAAA;EAAA;CAAA,EAFE,YAEF,GAAA;EAJ0B,QAAA,EAAA,CAAA,UAAA,EAEgB,UAFhB,CAAA,OAEkC,aAFlC,CAAA,EAAA,GAEqD,SAFrD;CAExB,EAAA,GAAwF,kBAAA,CAAA,GAAA,CAAA,OAAxF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IsFetching-D3xmE2Kn.d.mts","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAQa,cAAA,UAIZ,EAAA,CAAA;EAAA;CAAA,EAFE,YAEF,GAAA;EAJ0B,QAAA,EAAA,CAAA,UAAA,EAEgB,UAFhB,CAAA,OAEkC,aAFlC,CAAA,EAAA,GAEqD,SAFrD;CAExB,EAAA,GAAwF,kBAAA,CAAA,GAAA,CAAA,OAAxF"}
|
|
File without changes
|
|
File without changes
|