@suspensive/react-query-4 3.5.0 → 3.6.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/Mutation-Cq9YLow5.d.ts +16 -0
- package/dist/Mutation-Cq9YLow5.d.ts.map +1 -0
- package/dist/Mutation-DDdu16BX.cjs +22 -0
- package/dist/Mutation-DDdu16BX.cjs.map +1 -0
- package/dist/Mutation-DY_LwBl7.js +17 -0
- package/dist/Mutation-DY_LwBl7.js.map +1 -0
- package/dist/Mutation-cdrmBut7.d.cts +16 -0
- package/dist/Mutation-cdrmBut7.d.cts.map +1 -0
- package/dist/Mutation.cjs +3 -53
- package/dist/Mutation.d.cts +2 -9
- package/dist/Mutation.d.ts +2 -9
- package/dist/Mutation.js +4 -8
- package/dist/PrefetchInfiniteQuery-BS8Nva3i.d.ts +19 -0
- package/dist/PrefetchInfiniteQuery-BS8Nva3i.d.ts.map +1 -0
- package/dist/PrefetchInfiniteQuery-BZTIb3ao.cjs +27 -0
- package/dist/PrefetchInfiniteQuery-BZTIb3ao.cjs.map +1 -0
- package/dist/PrefetchInfiniteQuery-Cu8eI1Uu.js +21 -0
- package/dist/PrefetchInfiniteQuery-Cu8eI1Uu.js.map +1 -0
- package/dist/PrefetchInfiniteQuery-IxkInOV7.d.cts +19 -0
- package/dist/PrefetchInfiniteQuery-IxkInOV7.d.cts.map +1 -0
- package/dist/PrefetchInfiniteQuery.cjs +3 -45
- package/dist/PrefetchInfiniteQuery.d.cts +2 -14
- package/dist/PrefetchInfiniteQuery.d.ts +2 -14
- package/dist/PrefetchInfiniteQuery.js +4 -9
- package/dist/PrefetchQuery-BVGPOOH5.d.ts +19 -0
- package/dist/PrefetchQuery-BVGPOOH5.d.ts.map +1 -0
- package/dist/PrefetchQuery-CDuXG_oO.js +21 -0
- package/dist/PrefetchQuery-CDuXG_oO.js.map +1 -0
- package/dist/PrefetchQuery-CbqtM1Rd.d.cts +19 -0
- package/dist/PrefetchQuery-CbqtM1Rd.d.cts.map +1 -0
- package/dist/PrefetchQuery-DIrAWvic.cjs +27 -0
- package/dist/PrefetchQuery-DIrAWvic.cjs.map +1 -0
- package/dist/PrefetchQuery.cjs +3 -45
- package/dist/PrefetchQuery.d.cts +2 -14
- package/dist/PrefetchQuery.d.ts +2 -14
- package/dist/PrefetchQuery.js +4 -9
- package/dist/QueryClientConsumer-8SDR4C6s.cjs +21 -0
- package/dist/QueryClientConsumer-8SDR4C6s.cjs.map +1 -0
- package/dist/QueryClientConsumer-DDoaDhIt.js +15 -0
- package/dist/QueryClientConsumer-DDoaDhIt.js.map +1 -0
- package/dist/QueryClientConsumer-QCekb7pq.d.cts +20 -0
- package/dist/QueryClientConsumer-QCekb7pq.d.cts.map +1 -0
- package/dist/QueryClientConsumer-_5gcuXs-.d.ts +20 -0
- package/dist/QueryClientConsumer-_5gcuXs-.d.ts.map +1 -0
- package/dist/QueryClientConsumer.cjs +2 -37
- package/dist/QueryClientConsumer.d.cts +2 -13
- package/dist/QueryClientConsumer.d.ts +2 -13
- package/dist/QueryClientConsumer.js +3 -8
- package/dist/SuspenseInfiniteQuery-CeQzWPZw.js +33 -0
- package/dist/SuspenseInfiniteQuery-CeQzWPZw.js.map +1 -0
- package/dist/SuspenseInfiniteQuery-DChvWJAA.cjs +38 -0
- package/dist/SuspenseInfiniteQuery-DChvWJAA.cjs.map +1 -0
- package/dist/SuspenseInfiniteQuery-Dxj5pGKi.d.ts +34 -0
- package/dist/SuspenseInfiniteQuery-Dxj5pGKi.d.ts.map +1 -0
- package/dist/SuspenseInfiniteQuery-e8hfwQaY.d.cts +34 -0
- package/dist/SuspenseInfiniteQuery-e8hfwQaY.d.cts.map +1 -0
- package/dist/SuspenseInfiniteQuery.cjs +4 -80
- package/dist/SuspenseInfiniteQuery.d.cts +3 -26
- package/dist/SuspenseInfiniteQuery.d.ts +3 -26
- package/dist/SuspenseInfiniteQuery.js +5 -9
- package/dist/SuspenseQueries-CCwTitaN.d.ts +32 -0
- package/dist/SuspenseQueries-CCwTitaN.d.ts.map +1 -0
- package/dist/SuspenseQueries-CQGWMfTp.d.cts +32 -0
- package/dist/SuspenseQueries-CQGWMfTp.d.cts.map +1 -0
- package/dist/SuspenseQueries-bitBYcdo.js +27 -0
- package/dist/SuspenseQueries-bitBYcdo.js.map +1 -0
- package/dist/SuspenseQueries-mQkpPNfp.cjs +33 -0
- package/dist/SuspenseQueries-mQkpPNfp.cjs.map +1 -0
- package/dist/SuspenseQueries.cjs +2 -37
- package/dist/SuspenseQueries.d.cts +2 -25
- package/dist/SuspenseQueries.d.ts +2 -25
- package/dist/SuspenseQueries.js +3 -8
- package/dist/SuspenseQuery-Batp4Cq6.d.cts +33 -0
- package/dist/SuspenseQuery-Batp4Cq6.d.cts.map +1 -0
- package/dist/SuspenseQuery-C0R5nuQL.cjs +38 -0
- package/dist/SuspenseQuery-C0R5nuQL.cjs.map +1 -0
- package/dist/SuspenseQuery-DZYAnyAi.js +33 -0
- package/dist/SuspenseQuery-DZYAnyAi.js.map +1 -0
- package/dist/SuspenseQuery-t-edJ-93.d.ts +33 -0
- package/dist/SuspenseQuery-t-edJ-93.d.ts.map +1 -0
- package/dist/SuspenseQuery.cjs +3 -53
- package/dist/SuspenseQuery.d.cts +2 -25
- package/dist/SuspenseQuery.d.ts +2 -25
- package/dist/SuspenseQuery.js +4 -8
- package/dist/chunk-CeDO-pVn.cjs +40 -0
- package/dist/chunk-Ciq1R52r.js +28 -0
- package/dist/index.cjs +32 -207
- package/dist/index.d.cts +16 -18
- package/dist/index.d.ts +16 -18
- package/dist/index.js +18 -64
- package/dist/infiniteQueryOptions-D5UWCiQm.d.cts +23 -0
- package/dist/infiniteQueryOptions-D5UWCiQm.d.cts.map +1 -0
- package/dist/infiniteQueryOptions-DA5hdy3q.js +9 -0
- package/dist/infiniteQueryOptions-DA5hdy3q.js.map +1 -0
- package/dist/infiniteQueryOptions-F-YVOaXh.cjs +15 -0
- package/dist/infiniteQueryOptions-F-YVOaXh.cjs.map +1 -0
- package/dist/infiniteQueryOptions-OhnBXjqw.d.ts +23 -0
- package/dist/infiniteQueryOptions-OhnBXjqw.d.ts.map +1 -0
- package/dist/infiniteQueryOptions.cjs +2 -32
- package/dist/infiniteQueryOptions.d.cts +2 -18
- package/dist/infiniteQueryOptions.d.ts +2 -18
- package/dist/infiniteQueryOptions.js +3 -8
- package/dist/mutationOptions-B-tRCpph.d.cts +13 -0
- package/dist/mutationOptions-B-tRCpph.d.cts.map +1 -0
- package/dist/mutationOptions-B2q4VNKF.js +12 -0
- package/dist/mutationOptions-B2q4VNKF.js.map +1 -0
- package/dist/mutationOptions-B2wzWod0.cjs +18 -0
- package/dist/mutationOptions-B2wzWod0.cjs.map +1 -0
- package/dist/mutationOptions-B8QNFWFL.d.ts +13 -0
- package/dist/mutationOptions-B8QNFWFL.d.ts.map +1 -0
- package/dist/mutationOptions.cjs +2 -32
- package/dist/mutationOptions.d.cts +2 -8
- package/dist/mutationOptions.d.ts +2 -8
- package/dist/mutationOptions.js +3 -8
- package/dist/objectWithoutProperties-CxgYxkGP.cjs +41 -0
- package/dist/objectWithoutProperties-CxgYxkGP.cjs.map +1 -0
- package/dist/objectWithoutProperties-D3Ub7JDI.js +36 -0
- package/dist/objectWithoutProperties-D3Ub7JDI.js.map +1 -0
- package/dist/queryOptions--rzh3VF-.d.ts +31 -0
- package/dist/queryOptions--rzh3VF-.d.ts.map +1 -0
- package/dist/queryOptions-BFqIlOf6.d.cts +31 -0
- package/dist/queryOptions-BFqIlOf6.d.cts.map +1 -0
- package/dist/queryOptions-C8b9Gtyc.js +18 -0
- package/dist/queryOptions-C8b9Gtyc.js.map +1 -0
- package/dist/queryOptions-VYAn5RgE.cjs +24 -0
- package/dist/queryOptions-VYAn5RgE.cjs.map +1 -0
- package/dist/queryOptions.cjs +2 -31
- package/dist/queryOptions.d.cts +2 -26
- package/dist/queryOptions.d.ts +2 -26
- package/dist/queryOptions.js +3 -8
- package/dist/usePrefetchInfiniteQuery-Bh922oLD.js +16 -0
- package/dist/usePrefetchInfiniteQuery-Bh922oLD.js.map +1 -0
- package/dist/usePrefetchInfiniteQuery-DLkDZPuH.cjs +22 -0
- package/dist/usePrefetchInfiniteQuery-DLkDZPuH.cjs.map +1 -0
- package/dist/usePrefetchInfiniteQuery-KrJE5xOf.d.cts +14 -0
- package/dist/usePrefetchInfiniteQuery-KrJE5xOf.d.cts.map +1 -0
- package/dist/usePrefetchInfiniteQuery-M9BjRb0K.d.ts +14 -0
- package/dist/usePrefetchInfiniteQuery-M9BjRb0K.d.ts.map +1 -0
- package/dist/usePrefetchInfiniteQuery.cjs +2 -36
- package/dist/usePrefetchInfiniteQuery.d.cts +2 -9
- package/dist/usePrefetchInfiniteQuery.d.ts +2 -9
- package/dist/usePrefetchInfiniteQuery.js +3 -8
- package/dist/usePrefetchQuery-CAd9J9-z.js +16 -0
- package/dist/usePrefetchQuery-CAd9J9-z.js.map +1 -0
- package/dist/usePrefetchQuery-CTqZEpsJ.d.ts +14 -0
- package/dist/usePrefetchQuery-CTqZEpsJ.d.ts.map +1 -0
- package/dist/usePrefetchQuery-DxWFW57e.cjs +22 -0
- package/dist/usePrefetchQuery-DxWFW57e.cjs.map +1 -0
- package/dist/usePrefetchQuery-XkYUJflY.d.cts +14 -0
- package/dist/usePrefetchQuery-XkYUJflY.d.cts.map +1 -0
- package/dist/usePrefetchQuery.cjs +2 -36
- package/dist/usePrefetchQuery.d.cts +2 -9
- package/dist/usePrefetchQuery.d.ts +2 -9
- package/dist/usePrefetchQuery.js +3 -8
- package/dist/useSuspenseInfiniteQuery-B3Mk1jMY.js +108 -0
- package/dist/useSuspenseInfiniteQuery-B3Mk1jMY.js.map +1 -0
- package/dist/useSuspenseInfiniteQuery-BaOiPk5m.d.cts +18 -0
- package/dist/useSuspenseInfiniteQuery-BaOiPk5m.d.cts.map +1 -0
- package/dist/useSuspenseInfiniteQuery-CQGzIDyv.cjs +113 -0
- package/dist/useSuspenseInfiniteQuery-CQGzIDyv.cjs.map +1 -0
- package/dist/useSuspenseInfiniteQuery-DKVFCH7m.d.ts +18 -0
- package/dist/useSuspenseInfiniteQuery-DKVFCH7m.d.ts.map +1 -0
- package/dist/useSuspenseInfiniteQuery.cjs +2 -55
- package/dist/useSuspenseInfiniteQuery.d.cts +2 -14
- package/dist/useSuspenseInfiniteQuery.d.ts +2 -14
- package/dist/useSuspenseInfiniteQuery.js +3 -8
- package/dist/useSuspenseQueries-BUUeV7qD.d.cts +38 -0
- package/dist/useSuspenseQueries-BUUeV7qD.d.cts.map +1 -0
- package/dist/useSuspenseQueries-C4mHOTlJ.d.ts +38 -0
- package/dist/useSuspenseQueries-C4mHOTlJ.d.ts.map +1 -0
- package/dist/useSuspenseQueries-DQmk_OhC.cjs +24 -0
- package/dist/useSuspenseQueries-DQmk_OhC.cjs.map +1 -0
- package/dist/useSuspenseQueries-DWm4Q_i3.js +18 -0
- package/dist/useSuspenseQueries-DWm4Q_i3.js.map +1 -0
- package/dist/useSuspenseQueries.cjs +2 -31
- package/dist/useSuspenseQueries.d.cts +2 -34
- package/dist/useSuspenseQueries.d.ts +2 -34
- package/dist/useSuspenseQueries.js +3 -8
- package/dist/useSuspenseQuery-6DgpoFHS.d.cts +38 -0
- package/dist/useSuspenseQuery-6DgpoFHS.d.cts.map +1 -0
- package/dist/useSuspenseQuery-CGhgUxh-.d.ts +38 -0
- package/dist/useSuspenseQuery-CGhgUxh-.d.ts.map +1 -0
- package/dist/useSuspenseQuery-DSsDNDZJ.cjs +24 -0
- package/dist/useSuspenseQuery-DSsDNDZJ.cjs.map +1 -0
- package/dist/useSuspenseQuery-DZMToUHL.js +18 -0
- package/dist/useSuspenseQuery-DZMToUHL.js.map +1 -0
- package/dist/useSuspenseQuery.cjs +2 -31
- package/dist/useSuspenseQuery.d.cts +2 -34
- package/dist/useSuspenseQuery.d.ts +2 -34
- package/dist/useSuspenseQuery.js +3 -8
- package/package.json +3 -3
- package/dist/Mutation.cjs.map +0 -1
- package/dist/Mutation.js.map +0 -1
- package/dist/PrefetchInfiniteQuery.cjs.map +0 -1
- package/dist/PrefetchInfiniteQuery.js.map +0 -1
- package/dist/PrefetchQuery.cjs.map +0 -1
- package/dist/PrefetchQuery.js.map +0 -1
- package/dist/QueryClientConsumer.cjs.map +0 -1
- package/dist/QueryClientConsumer.js.map +0 -1
- package/dist/SuspenseInfiniteQuery.cjs.map +0 -1
- package/dist/SuspenseInfiniteQuery.js.map +0 -1
- package/dist/SuspenseQueries.cjs.map +0 -1
- package/dist/SuspenseQueries.js.map +0 -1
- package/dist/SuspenseQuery.cjs.map +0 -1
- package/dist/SuspenseQuery.js.map +0 -1
- package/dist/chunk-34N4X5NK.js +0 -11
- package/dist/chunk-34N4X5NK.js.map +0 -1
- package/dist/chunk-7AETAPCD.js +0 -16
- package/dist/chunk-7AETAPCD.js.map +0 -1
- package/dist/chunk-A6D2XGKX.js +0 -12
- package/dist/chunk-A6D2XGKX.js.map +0 -1
- package/dist/chunk-BOUCJMBU.js +0 -23
- package/dist/chunk-BOUCJMBU.js.map +0 -1
- package/dist/chunk-CLWCIHTL.js +0 -23
- package/dist/chunk-CLWCIHTL.js.map +0 -1
- package/dist/chunk-IB2JQANE.js +0 -16
- package/dist/chunk-IB2JQANE.js.map +0 -1
- package/dist/chunk-IJFXQRYI.js +0 -11
- package/dist/chunk-IJFXQRYI.js.map +0 -1
- package/dist/chunk-OGTYZE7J.js +0 -16
- package/dist/chunk-OGTYZE7J.js.map +0 -1
- package/dist/chunk-QETBZSG5.js +0 -39
- package/dist/chunk-QETBZSG5.js.map +0 -1
- package/dist/chunk-QYGYB5UC.js +0 -23
- package/dist/chunk-QYGYB5UC.js.map +0 -1
- package/dist/chunk-SXV24QIX.js +0 -15
- package/dist/chunk-SXV24QIX.js.map +0 -1
- package/dist/chunk-V6B7UP6T.js +0 -15
- package/dist/chunk-V6B7UP6T.js.map +0 -1
- package/dist/chunk-WCKC4M3O.js +0 -12
- package/dist/chunk-WCKC4M3O.js.map +0 -1
- package/dist/chunk-WE3IMJ7D.js +0 -16
- package/dist/chunk-WE3IMJ7D.js.map +0 -1
- package/dist/chunk-X7BBVL5B.js +0 -21
- package/dist/chunk-X7BBVL5B.js.map +0 -1
- package/dist/chunk-YFVQ7O2B.js +0 -12
- package/dist/chunk-YFVQ7O2B.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/infiniteQueryOptions.cjs.map +0 -1
- package/dist/infiniteQueryOptions.js.map +0 -1
- package/dist/mutationOptions.cjs.map +0 -1
- package/dist/mutationOptions.js.map +0 -1
- package/dist/queryOptions.cjs.map +0 -1
- package/dist/queryOptions.js.map +0 -1
- package/dist/usePrefetchInfiniteQuery.cjs.map +0 -1
- package/dist/usePrefetchInfiniteQuery.js.map +0 -1
- package/dist/usePrefetchQuery.cjs.map +0 -1
- package/dist/usePrefetchQuery.js.map +0 -1
- package/dist/useSuspenseInfiniteQuery.cjs.map +0 -1
- package/dist/useSuspenseInfiniteQuery.js.map +0 -1
- package/dist/useSuspenseQueries.cjs.map +0 -1
- package/dist/useSuspenseQueries.js.map +0 -1
- package/dist/useSuspenseQuery.cjs.map +0 -1
- package/dist/useSuspenseQuery.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
//#region src/mutationOptions.tsx
|
|
3
|
+
/**
|
|
4
|
+
* @experimental This is experimental feature.
|
|
5
|
+
*/
|
|
6
|
+
function mutationOptions(options) {
|
|
7
|
+
return options;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { mutationOptions };
|
|
12
|
+
//# sourceMappingURL=mutationOptions-B2q4VNKF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOptions-B2q4VNKF.js","names":["options: UseMutationOptions<TData, TError, TVariables, TContext>"],"sources":["../src/mutationOptions.tsx"],"sourcesContent":["import type { UseMutationOptions } from '@tanstack/react-query'\n\n/**\n * @experimental This is experimental feature.\n */\nexport function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(\n options: UseMutationOptions<TData, TError, TVariables, TContext>\n): UseMutationOptions<TData, TError, TVariables, TContext> {\n return options\n}\n"],"mappings":";;;;;AAKA,SAAgB,gBACdA,SACyD;AACzD,QAAO;AACR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
//#region src/mutationOptions.tsx
|
|
4
|
+
/**
|
|
5
|
+
* @experimental This is experimental feature.
|
|
6
|
+
*/
|
|
7
|
+
function mutationOptions(options) {
|
|
8
|
+
return options;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
Object.defineProperty(exports, 'mutationOptions', {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return mutationOptions;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=mutationOptions-B2wzWod0.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOptions-B2wzWod0.cjs","names":["options: UseMutationOptions<TData, TError, TVariables, TContext>"],"sources":["../src/mutationOptions.tsx"],"sourcesContent":["import type { UseMutationOptions } from '@tanstack/react-query'\n\n/**\n * @experimental This is experimental feature.\n */\nexport function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(\n options: UseMutationOptions<TData, TError, TVariables, TContext>\n): UseMutationOptions<TData, TError, TVariables, TContext> {\n return options\n}\n"],"mappings":";;;;;;AAKA,SAAgB,gBACdA,SACyD;AACzD,QAAO;AACR"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UseMutationOptions } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/mutationOptions.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @experimental This is experimental feature.
|
|
7
|
+
*/
|
|
8
|
+
declare function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<TData, TError, TVariables, TContext>): UseMutationOptions<TData, TError, TVariables, TContext>;
|
|
9
|
+
//# sourceMappingURL=mutationOptions.d.ts.map
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { mutationOptions };
|
|
13
|
+
//# sourceMappingURL=mutationOptions-B8QNFWFL.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOptions-B8QNFWFL.d.ts","names":[],"sources":["../src/mutationOptions.tsx"],"sourcesContent":[],"mappings":";;;;;;AAKA;AAA+B,iBAAf,eAAe,CAAA,QAAA,OAAA,EAAA,SAAA,OAAA,EAAA,aAAA,IAAA,EAAA,WAAA,OAAA,CAAA,CAAA,OAAA,EACpB,kBADoB,CACD,KADC,EACM,MADN,EACc,UADd,EAC0B,QAD1B,CAAA,CAAA,EAE5B,kBAF4B,CAET,KAFS,EAEF,MAFE,EAEM,UAFN,EAEkB,QAFlB,CAAA"}
|
package/dist/mutationOptions.cjs
CHANGED
|
@@ -1,34 +1,4 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
|
+
const require_mutationOptions = require('./mutationOptions-B2wzWod0.cjs');
|
|
20
3
|
|
|
21
|
-
|
|
22
|
-
var mutationOptions_exports = {};
|
|
23
|
-
__export(mutationOptions_exports, {
|
|
24
|
-
mutationOptions: () => mutationOptions
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(mutationOptions_exports);
|
|
27
|
-
function mutationOptions(options) {
|
|
28
|
-
return options;
|
|
29
|
-
}
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
mutationOptions
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=mutationOptions.cjs.map
|
|
4
|
+
exports.mutationOptions = require_mutationOptions.mutationOptions;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @experimental This is experimental feature.
|
|
5
|
-
*/
|
|
6
|
-
declare function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<TData, TError, TVariables, TContext>): UseMutationOptions<TData, TError, TVariables, TContext>;
|
|
7
|
-
|
|
8
|
-
export { mutationOptions };
|
|
1
|
+
import { mutationOptions } from "./mutationOptions-B-tRCpph.cjs";
|
|
2
|
+
export { mutationOptions };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @experimental This is experimental feature.
|
|
5
|
-
*/
|
|
6
|
-
declare function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<TData, TError, TVariables, TContext>): UseMutationOptions<TData, TError, TVariables, TContext>;
|
|
7
|
-
|
|
8
|
-
export { mutationOptions };
|
|
1
|
+
import { mutationOptions } from "./mutationOptions-B8QNFWFL.js";
|
|
2
|
+
export { mutationOptions };
|
package/dist/mutationOptions.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "./chunk-QETBZSG5.js";
|
|
6
|
-
export {
|
|
7
|
-
mutationOptions
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=mutationOptions.js.map
|
|
2
|
+
import { mutationOptions } from "./mutationOptions-B2q4VNKF.js";
|
|
3
|
+
|
|
4
|
+
export { mutationOptions };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
const require_chunk = require('./chunk-CeDO-pVn.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js
|
|
5
|
+
var require_objectWithoutPropertiesLoose = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js": ((exports, module) => {
|
|
6
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
7
|
+
if (null == r) return {};
|
|
8
|
+
var t = {};
|
|
9
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10
|
+
if (e.includes(n)) continue;
|
|
11
|
+
t[n] = r[n];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16
|
+
}) });
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js
|
|
20
|
+
var require_objectWithoutProperties = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js": ((exports, module) => {
|
|
21
|
+
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
|
|
22
|
+
function _objectWithoutProperties(e, t) {
|
|
23
|
+
if (null == e) return {};
|
|
24
|
+
var o, r, i = objectWithoutPropertiesLoose(e, t);
|
|
25
|
+
if (Object.getOwnPropertySymbols) {
|
|
26
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
27
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
28
|
+
}
|
|
29
|
+
return i;
|
|
30
|
+
}
|
|
31
|
+
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
32
|
+
}) });
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
Object.defineProperty(exports, 'require_objectWithoutProperties', {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () {
|
|
38
|
+
return require_objectWithoutProperties;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=objectWithoutProperties-CxgYxkGP.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectWithoutProperties-CxgYxkGP.cjs","names":[],"sources":["../../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"],"sourcesContent":["function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nmodule.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0,1],"mappings":";;;;;CAAA,SAAS,8BAA8B,GAAG,GAAG;AAC3C,MAAI,QAAQ,EAAG,QAAO,CAAE;EACxB,IAAI,IAAI,CAAE;AACV,OAAK,IAAI,KAAK,EAAG,KAAI,CAAE,EAAC,eAAe,KAAK,GAAG,EAAE,EAAE;AACjD,OAAI,EAAE,SAAS,EAAE,CAAE;GACnB,EAAE,KAAK,EAAE;EACV;AACD,SAAO;CACR;CACD,OAAO,UAAU,+BAA+B,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO;;;;;;CCTrH,IAAI;CACJ,SAAS,yBAAyB,GAAG,GAAG;AACtC,MAAI,QAAQ,EAAG,QAAO,CAAE;EACxB,IAAI,GACF,GACA,IAAI,6BAA6B,GAAG,EAAE;AACxC,MAAI,OAAO,uBAAuB;GAChC,IAAI,IAAI,OAAO,sBAAsB,EAAE;AACvC,QAAK,IAAI,GAAG,IAAI,EAAE,QAAQ,KAAK,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAE,EAAC,qBAAqB,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE;EAC3G;AACD,SAAO;CACR;CACD,OAAO,UAAU,0BAA0B,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import { __commonJS } from "./chunk-Ciq1R52r.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js
|
|
5
|
+
var require_objectWithoutPropertiesLoose = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js": ((exports, module) => {
|
|
6
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
7
|
+
if (null == r) return {};
|
|
8
|
+
var t = {};
|
|
9
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10
|
+
if (e.includes(n)) continue;
|
|
11
|
+
t[n] = r[n];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16
|
+
}) });
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js
|
|
20
|
+
var require_objectWithoutProperties = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js": ((exports, module) => {
|
|
21
|
+
var objectWithoutPropertiesLoose = require_objectWithoutPropertiesLoose();
|
|
22
|
+
function _objectWithoutProperties(e, t) {
|
|
23
|
+
if (null == e) return {};
|
|
24
|
+
var o, r, i = objectWithoutPropertiesLoose(e, t);
|
|
25
|
+
if (Object.getOwnPropertySymbols) {
|
|
26
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
27
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
28
|
+
}
|
|
29
|
+
return i;
|
|
30
|
+
}
|
|
31
|
+
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
32
|
+
}) });
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { require_objectWithoutProperties };
|
|
36
|
+
//# sourceMappingURL=objectWithoutProperties-D3Ub7JDI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectWithoutProperties-D3Ub7JDI.js","names":[],"sources":["../../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/.pnpm/@oxc-project+runtime@0.78.0/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"],"sourcesContent":["function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nmodule.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"x_google_ignoreList":[0,1],"mappings":";;;;;CAAA,SAAS,8BAA8B,GAAG,GAAG;AAC3C,MAAI,QAAQ,EAAG,QAAO,CAAE;EACxB,IAAI,IAAI,CAAE;AACV,OAAK,IAAI,KAAK,EAAG,KAAI,CAAE,EAAC,eAAe,KAAK,GAAG,EAAE,EAAE;AACjD,OAAI,EAAE,SAAS,EAAE,CAAE;GACnB,EAAE,KAAK,EAAE;EACV;AACD,SAAO;CACR;CACD,OAAO,UAAU,+BAA+B,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO;;;;;;CCTrH,IAAI;CACJ,SAAS,yBAAyB,GAAG,GAAG;AACtC,MAAI,QAAQ,EAAG,QAAO,CAAE;EACxB,IAAI,GACF,GACA,IAAI,6BAA6B,GAAG,EAAE;AACxC,MAAI,OAAO,uBAAuB;GAChC,IAAI,IAAI,OAAO,sBAAsB,EAAE;AACvC,QAAK,IAAI,GAAG,IAAI,EAAE,QAAQ,KAAK,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAE,EAAC,qBAAqB,KAAK,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE;EAC3G;AACD,SAAO;CACR;CACD,OAAO,UAAU,0BAA0B,OAAO,QAAQ,aAAa,MAAM,OAAO,QAAQ,aAAa,OAAO"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OmitKeyof, QueryKey, UseQueryOptions, WithRequired, queryOptions } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/queryOptions.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated There is no `SelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
7
|
+
*/
|
|
8
|
+
type SelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
9
|
+
select: (data: TQueryFnData) => TData;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated There is no `UnSelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
13
|
+
*/
|
|
14
|
+
type UnSelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
15
|
+
select?: undefined;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
19
|
+
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
20
|
+
* @example
|
|
21
|
+
* ```diff
|
|
22
|
+
* - import { queryOptions } from '@suspensive/react-query'
|
|
23
|
+
* + import { queryOptions } from '@tanstack/react-query'
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const queryOptions$1: typeof queryOptions;
|
|
27
|
+
//# sourceMappingURL=queryOptions.d.ts.map
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions$1 as queryOptions };
|
|
31
|
+
//# sourceMappingURL=queryOptions--rzh3VF-.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOptions--rzh3VF-.d.ts","names":[],"sources":["../src/queryOptions.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;AAAgC,KAApB,oBAAoB,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAGtB,YAHsB,EAAA,kBAIZ,QAJY,GAID,QAJC,CAAA,GAK5B,YAL4B,CAM9B,SAN8B,CAO5B,eAP4B,CAOZ,YAPY,EAOE,MAPF,EAOU,KAPV,EAOiB,SAPjB,CAAA,EAAA,kBAAA,GAAA,sBAAA,GAAA,gBAAA,GAAA,YAAA,GAAA,UAAA,GAAA,mBAAA,GAAA,aAAA,GAAA,WAAA,GAAA,SAAA,GAAA,WAAA,GAAA,SAAA,GAAA,iBAAA,GAAA,aAAA,GAAA,aAAA,CAAA,EAAA,UAAA,GAAA,SAAA,CAAA,GAAA;EAAA,MAGtB,EAAA,CAAA,IAAA,EAsBO,YAtBP,EAAA,GAsBwB,KAtBxB;CAAY;;;;AAIoB,KAwB9B,sBAxB8B,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QA2BhC,YA3BgC,EAAA,kBA4BtB,QA5BsB,GA4BX,QA5BW,CAAA,GA6BtC,YA7BsC,CA8BxC,SA9BwC,CA+BtC,eA/BsC,CA+BtB,YA/BsB,EA+BR,MA/BQ,EA+BA,KA/BA,EA+BO,SA/BP,CAAA,EAAA,kBAAA,GAAA,sBAAA,GAAA,gBAAA,GAAA,YAAA,GAAA,UAAA,GAAA,mBAAA,GAAA,aAAA,GAAA,WAAA,GAAA,SAAA,GAAA,WAAA,GAAA,SAAA,GAAA,iBAAA,GAAA,aAAA,GAAA,aAAA,CAAA,EAAA,UAAA,GAAA,SAAA,CAAA,GAAA;EAAK,MAAE,CAAA,EAAA,SAAA;CAAS;;;;;AAkBnB;AAMvC;;;;AAI+B,cAiClB,cAjCkB,EAAA,OAiCN,YAjCM"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OmitKeyof, QueryKey, UseQueryOptions, WithRequired, queryOptions } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/queryOptions.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated There is no `SelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
7
|
+
*/
|
|
8
|
+
type SelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
9
|
+
select: (data: TQueryFnData) => TData;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated There is no `UnSelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
13
|
+
*/
|
|
14
|
+
type UnSelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
15
|
+
select?: undefined;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
19
|
+
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
20
|
+
* @example
|
|
21
|
+
* ```diff
|
|
22
|
+
* - import { queryOptions } from '@suspensive/react-query'
|
|
23
|
+
* + import { queryOptions } from '@tanstack/react-query'
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const queryOptions$1: typeof queryOptions;
|
|
27
|
+
//# sourceMappingURL=queryOptions.d.ts.map
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions$1 as queryOptions };
|
|
31
|
+
//# sourceMappingURL=queryOptions-BFqIlOf6.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOptions-BFqIlOf6.d.cts","names":[],"sources":["../src/queryOptions.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;AAAgC,KAApB,oBAAoB,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAGtB,YAHsB,EAAA,kBAIZ,QAJY,GAID,QAJC,CAAA,GAK5B,YAL4B,CAM9B,SAN8B,CAO5B,eAP4B,CAOZ,YAPY,EAOE,MAPF,EAOU,KAPV,EAOiB,SAPjB,CAAA,EAAA,kBAAA,GAAA,sBAAA,GAAA,gBAAA,GAAA,YAAA,GAAA,UAAA,GAAA,mBAAA,GAAA,aAAA,GAAA,WAAA,GAAA,SAAA,GAAA,WAAA,GAAA,SAAA,GAAA,iBAAA,GAAA,aAAA,GAAA,aAAA,CAAA,EAAA,UAAA,GAAA,SAAA,CAAA,GAAA;EAAA,MAGtB,EAAA,CAAA,IAAA,EAsBO,YAtBP,EAAA,GAsBwB,KAtBxB;CAAY;;;;AAIoB,KAwB9B,sBAxB8B,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QA2BhC,YA3BgC,EAAA,kBA4BtB,QA5BsB,GA4BX,QA5BW,CAAA,GA6BtC,YA7BsC,CA8BxC,SA9BwC,CA+BtC,eA/BsC,CA+BtB,YA/BsB,EA+BR,MA/BQ,EA+BA,KA/BA,EA+BO,SA/BP,CAAA,EAAA,kBAAA,GAAA,sBAAA,GAAA,gBAAA,GAAA,YAAA,GAAA,UAAA,GAAA,mBAAA,GAAA,aAAA,GAAA,WAAA,GAAA,SAAA,GAAA,WAAA,GAAA,SAAA,GAAA,iBAAA,GAAA,aAAA,GAAA,aAAA,CAAA,EAAA,UAAA,GAAA,SAAA,CAAA,GAAA;EAAK,MAAE,CAAA,EAAA,SAAA;CAAS;;;;;AAkBnB;AAMvC;;;;AAI+B,cAiClB,cAjCkB,EAAA,OAiCN,YAjCM"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
+
|
|
4
|
+
//#region src/queryOptions.ts
|
|
5
|
+
/**
|
|
6
|
+
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
7
|
+
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
8
|
+
* @example
|
|
9
|
+
* ```diff
|
|
10
|
+
* - import { queryOptions } from '@suspensive/react-query'
|
|
11
|
+
* + import { queryOptions } from '@tanstack/react-query'
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
const queryOptions$1 = queryOptions;
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { queryOptions$1 as queryOptions };
|
|
18
|
+
//# sourceMappingURL=queryOptions-C8b9Gtyc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOptions-C8b9Gtyc.js","names":["queryOptions","original_queryOptions"],"sources":["../src/queryOptions.ts"],"sourcesContent":["import {\n type OmitKeyof,\n type QueryKey,\n type UseQueryOptions,\n type WithRequired,\n queryOptions as original_queryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: TQueryFnData) => TData\n}\n\n/**\n * @deprecated There is no `UnSelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.40.0, You can proceed with the migration.\n * @deprecated Use `queryOptions` from \\@tanstack/react-query@^4.40.0\n * @example\n * ```diff\n * - import { queryOptions } from '@suspensive/react-query'\n * + import { queryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const queryOptions = original_queryOptions\n"],"mappings":";;;;;;;;;;;;;AA+EA,MAAaA,iBAAeC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
const require_chunk = require('./chunk-CeDO-pVn.cjs');
|
|
3
|
+
const __tanstack_react_query = require_chunk.__toESM(require("@tanstack/react-query"));
|
|
4
|
+
|
|
5
|
+
//#region src/queryOptions.ts
|
|
6
|
+
/**
|
|
7
|
+
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
8
|
+
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
9
|
+
* @example
|
|
10
|
+
* ```diff
|
|
11
|
+
* - import { queryOptions } from '@suspensive/react-query'
|
|
12
|
+
* + import { queryOptions } from '@tanstack/react-query'
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
const queryOptions = __tanstack_react_query.queryOptions;
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
Object.defineProperty(exports, 'queryOptions', {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return queryOptions;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=queryOptions-VYAn5RgE.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOptions-VYAn5RgE.cjs","names":["original_queryOptions"],"sources":["../src/queryOptions.ts"],"sourcesContent":["import {\n type OmitKeyof,\n type QueryKey,\n type UseQueryOptions,\n type WithRequired,\n queryOptions as original_queryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: TQueryFnData) => TData\n}\n\n/**\n * @deprecated There is no `UnSelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.40.0, You can proceed with the migration.\n * @deprecated Use `queryOptions` from \\@tanstack/react-query@^4.40.0\n * @example\n * ```diff\n * - import { queryOptions } from '@suspensive/react-query'\n * + import { queryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const queryOptions = original_queryOptions\n"],"mappings":";;;;;;;;;;;;;;AA+EA,MAAa,eAAeA"}
|
package/dist/queryOptions.cjs
CHANGED
|
@@ -1,33 +1,4 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
|
+
const require_queryOptions = require('./queryOptions-VYAn5RgE.cjs');
|
|
20
3
|
|
|
21
|
-
|
|
22
|
-
var queryOptions_exports = {};
|
|
23
|
-
__export(queryOptions_exports, {
|
|
24
|
-
queryOptions: () => queryOptions
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(queryOptions_exports);
|
|
27
|
-
var import_react_query = require("@tanstack/react-query");
|
|
28
|
-
var queryOptions = import_react_query.queryOptions;
|
|
29
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
-
0 && (module.exports = {
|
|
31
|
-
queryOptions
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=queryOptions.cjs.map
|
|
4
|
+
exports.queryOptions = require_queryOptions.queryOptions;
|
package/dist/queryOptions.d.cts
CHANGED
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated There is no `SelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
5
|
-
*/
|
|
6
|
-
type SelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
7
|
-
select: (data: TQueryFnData) => TData;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated There is no `UnSelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
11
|
-
*/
|
|
12
|
-
type UnSelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
13
|
-
select?: undefined;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
17
|
-
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
18
|
-
* @example
|
|
19
|
-
* ```diff
|
|
20
|
-
* - import { queryOptions } from '@suspensive/react-query'
|
|
21
|
-
* + import { queryOptions } from '@tanstack/react-query'
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
declare const queryOptions: typeof queryOptions$1;
|
|
25
|
-
|
|
26
|
-
export { type SelectedQueryOptions, type UnSelectedQueryOptions, queryOptions };
|
|
1
|
+
import { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions } from "./queryOptions-BFqIlOf6.cjs";
|
|
2
|
+
export { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions };
|
package/dist/queryOptions.d.ts
CHANGED
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated There is no `SelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
5
|
-
*/
|
|
6
|
-
type SelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
7
|
-
select: (data: TQueryFnData) => TData;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated There is no `UnSelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
11
|
-
*/
|
|
12
|
-
type UnSelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
13
|
-
select?: undefined;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
17
|
-
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
18
|
-
* @example
|
|
19
|
-
* ```diff
|
|
20
|
-
* - import { queryOptions } from '@suspensive/react-query'
|
|
21
|
-
* + import { queryOptions } from '@tanstack/react-query'
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
declare const queryOptions: typeof queryOptions$1;
|
|
25
|
-
|
|
26
|
-
export { type SelectedQueryOptions, type UnSelectedQueryOptions, queryOptions };
|
|
1
|
+
import { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions } from "./queryOptions--rzh3VF-.js";
|
|
2
|
+
export { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions };
|
package/dist/queryOptions.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "./chunk-QETBZSG5.js";
|
|
6
|
-
export {
|
|
7
|
-
queryOptions
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=queryOptions.js.map
|
|
2
|
+
import { queryOptions } from "./queryOptions-C8b9Gtyc.js";
|
|
3
|
+
|
|
4
|
+
export { queryOptions };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
|
|
4
|
+
//#region src/usePrefetchInfiniteQuery.ts
|
|
5
|
+
/**
|
|
6
|
+
* The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses `useSuspenseInfiniteQuery`.
|
|
7
|
+
* @see {@link https://suspensive.org/docs/react-query/usePrefetchInfiniteQuery Suspensive Docs}
|
|
8
|
+
*/
|
|
9
|
+
function usePrefetchInfiniteQuery(options) {
|
|
10
|
+
const queryClient = useQueryClient();
|
|
11
|
+
if (typeof options.queryKey !== "undefined" && !queryClient.getQueryState(options.queryKey)) queryClient.prefetchInfiniteQuery(options);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { usePrefetchInfiniteQuery };
|
|
16
|
+
//# sourceMappingURL=usePrefetchInfiniteQuery-Bh922oLD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrefetchInfiniteQuery-Bh922oLD.js","names":["options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>"],"sources":["../src/usePrefetchInfiniteQuery.ts"],"sourcesContent":["import { type FetchInfiniteQueryOptions, type QueryKey, useQueryClient } from '@tanstack/react-query'\n\n/**\n * The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses `useSuspenseInfiniteQuery`.\n * @see {@link https://suspensive.org/docs/react-query/usePrefetchInfiniteQuery Suspensive Docs}\n */\nexport function usePrefetchInfiniteQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>) {\n const queryClient = useQueryClient()\n\n if (typeof options.queryKey !== 'undefined' && !queryClient.getQueryState(options.queryKey)) {\n queryClient.prefetchInfiniteQuery(options)\n }\n}\n"],"mappings":";;;;;;;;AAMA,SAAgB,yBAKdA,SAA4E;CAC5E,MAAM,cAAc,gBAAgB;AAEpC,KAAI,OAAO,QAAQ,aAAa,eAAe,CAAC,YAAY,cAAc,QAAQ,SAAS,EACzF,YAAY,sBAAsB,QAAQ;AAE7C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
const require_chunk = require('./chunk-CeDO-pVn.cjs');
|
|
3
|
+
const __tanstack_react_query = require_chunk.__toESM(require("@tanstack/react-query"));
|
|
4
|
+
|
|
5
|
+
//#region src/usePrefetchInfiniteQuery.ts
|
|
6
|
+
/**
|
|
7
|
+
* The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses `useSuspenseInfiniteQuery`.
|
|
8
|
+
* @see {@link https://suspensive.org/docs/react-query/usePrefetchInfiniteQuery Suspensive Docs}
|
|
9
|
+
*/
|
|
10
|
+
function usePrefetchInfiniteQuery(options) {
|
|
11
|
+
const queryClient = (0, __tanstack_react_query.useQueryClient)();
|
|
12
|
+
if (typeof options.queryKey !== "undefined" && !queryClient.getQueryState(options.queryKey)) queryClient.prefetchInfiniteQuery(options);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
Object.defineProperty(exports, 'usePrefetchInfiniteQuery', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return usePrefetchInfiniteQuery;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=usePrefetchInfiniteQuery-DLkDZPuH.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrefetchInfiniteQuery-DLkDZPuH.cjs","names":["options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>"],"sources":["../src/usePrefetchInfiniteQuery.ts"],"sourcesContent":["import { type FetchInfiniteQueryOptions, type QueryKey, useQueryClient } from '@tanstack/react-query'\n\n/**\n * The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses `useSuspenseInfiniteQuery`.\n * @see {@link https://suspensive.org/docs/react-query/usePrefetchInfiniteQuery Suspensive Docs}\n */\nexport function usePrefetchInfiniteQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>) {\n const queryClient = useQueryClient()\n\n if (typeof options.queryKey !== 'undefined' && !queryClient.getQueryState(options.queryKey)) {\n queryClient.prefetchInfiniteQuery(options)\n }\n}\n"],"mappings":";;;;;;;;;AAMA,SAAgB,yBAKdA,SAA4E;CAC5E,MAAM,0DAA8B;AAEpC,KAAI,OAAO,QAAQ,aAAa,eAAe,CAAC,YAAY,cAAc,QAAQ,SAAS,EACzF,YAAY,sBAAsB,QAAQ;AAE7C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FetchInfiniteQueryOptions, QueryKey } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/usePrefetchInfiniteQuery.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses `useSuspenseInfiniteQuery`.
|
|
7
|
+
* @see {@link https://suspensive.org/docs/react-query/usePrefetchInfiniteQuery Suspensive Docs}
|
|
8
|
+
*/
|
|
9
|
+
declare function usePrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>): void;
|
|
10
|
+
//# sourceMappingURL=usePrefetchInfiniteQuery.d.ts.map
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { usePrefetchInfiniteQuery };
|
|
14
|
+
//# sourceMappingURL=usePrefetchInfiniteQuery-KrJE5xOf.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrefetchInfiniteQuery-KrJE5xOf.d.cts","names":[],"sources":["../src/usePrefetchInfiniteQuery.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;;AAGU,iBAHM,wBAGN,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAAA,YAAA,EAAA,kBACU,QADV,GACqB,QADrB,CAAA,CAAA,OAAA,EAEC,yBAFD,CAE2B,YAF3B,EAEyC,MAFzC,EAEiD,KAFjD,EAEwD,SAFxD,CAAA,CAAA,EAAA,IAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FetchInfiniteQueryOptions, QueryKey } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/usePrefetchInfiniteQuery.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses `useSuspenseInfiniteQuery`.
|
|
7
|
+
* @see {@link https://suspensive.org/docs/react-query/usePrefetchInfiniteQuery Suspensive Docs}
|
|
8
|
+
*/
|
|
9
|
+
declare function usePrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>): void;
|
|
10
|
+
//# sourceMappingURL=usePrefetchInfiniteQuery.d.ts.map
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { usePrefetchInfiniteQuery };
|
|
14
|
+
//# sourceMappingURL=usePrefetchInfiniteQuery-M9BjRb0K.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrefetchInfiniteQuery-M9BjRb0K.d.ts","names":[],"sources":["../src/usePrefetchInfiniteQuery.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;;AAGU,iBAHM,wBAGN,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAAA,YAAA,EAAA,kBACU,QADV,GACqB,QADrB,CAAA,CAAA,OAAA,EAEC,yBAFD,CAE2B,YAF3B,EAEyC,MAFzC,EAEiD,KAFjD,EAEwD,SAFxD,CAAA,CAAA,EAAA,IAAA"}
|
|
@@ -1,38 +1,4 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
|
+
const require_usePrefetchInfiniteQuery = require('./usePrefetchInfiniteQuery-DLkDZPuH.cjs');
|
|
20
3
|
|
|
21
|
-
|
|
22
|
-
var usePrefetchInfiniteQuery_exports = {};
|
|
23
|
-
__export(usePrefetchInfiniteQuery_exports, {
|
|
24
|
-
usePrefetchInfiniteQuery: () => usePrefetchInfiniteQuery
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(usePrefetchInfiniteQuery_exports);
|
|
27
|
-
var import_react_query = require("@tanstack/react-query");
|
|
28
|
-
function usePrefetchInfiniteQuery(options) {
|
|
29
|
-
const queryClient = (0, import_react_query.useQueryClient)();
|
|
30
|
-
if (typeof options.queryKey !== "undefined" && !queryClient.getQueryState(options.queryKey)) {
|
|
31
|
-
queryClient.prefetchInfiniteQuery(options);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
-
0 && (module.exports = {
|
|
36
|
-
usePrefetchInfiniteQuery
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=usePrefetchInfiniteQuery.cjs.map
|
|
4
|
+
exports.usePrefetchInfiniteQuery = require_usePrefetchInfiniteQuery.usePrefetchInfiniteQuery;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses `useSuspenseInfiniteQuery`.
|
|
5
|
-
* @see {@link https://suspensive.org/docs/react-query/usePrefetchInfiniteQuery Suspensive Docs}
|
|
6
|
-
*/
|
|
7
|
-
declare function usePrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>): void;
|
|
8
|
-
|
|
9
|
-
export { usePrefetchInfiniteQuery };
|
|
1
|
+
import { usePrefetchInfiniteQuery } from "./usePrefetchInfiniteQuery-KrJE5xOf.cjs";
|
|
2
|
+
export { usePrefetchInfiniteQuery };
|