react-query-kit 3.0.0-beta.0 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/types.d.ts +11 -4
- package/build/stats-html.html +1 -1
- package/build/stats.json +84 -84
- package/package.json +1 -1
- package/src/types.ts +11 -2
package/build/lib/types.d.ts
CHANGED
|
@@ -35,7 +35,8 @@ export type ExposeMethods<TFnData, TVariables, TError, TPageParam = never> = {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
type Clone<T> = T extends infer TClone ? TClone : never;
|
|
38
|
-
export interface CreateQueryOptions<TFnData = unknown, TVariables = void, TError = CompatibleError> extends Omit<UseQueryOptions<TFnData, TError, TFnData, QueryKey>, 'queryFn' | 'select'>, AdditionalQueryOptions<TFnData, TVariables> {
|
|
38
|
+
export interface CreateQueryOptions<TFnData = unknown, TVariables = void, TError = CompatibleError> extends Omit<UseQueryOptions<TFnData, TError, TFnData, QueryKey>, 'queryKey' | 'queryFn' | 'select'>, AdditionalQueryOptions<TFnData, TVariables> {
|
|
39
|
+
queryKey: QueryKey;
|
|
39
40
|
use?: Middleware<QueryHook<Clone<TFnData>, Clone<TVariables>, Clone<TError>>>[];
|
|
40
41
|
variables?: TVariables;
|
|
41
42
|
}
|
|
@@ -52,8 +53,10 @@ export interface QueryHook<TFnData = unknown, TVariables = any, TError = Compati
|
|
|
52
53
|
<TData = TFnData>(options: DefinedQueryHookOptions<TFnData, TError, TData, TVariables>, queryClient?: CompatibleWithV4<QueryClient, void>): DefinedQueryHookResult<TData, TError>;
|
|
53
54
|
<TData = TFnData>(options?: QueryHookOptions<TFnData, TError, TData, TVariables>, queryClient?: CompatibleWithV4<QueryClient, void>): QueryHookResult<TData, TError>;
|
|
54
55
|
}
|
|
55
|
-
export interface CreateSuspenseQueryOptions<TFnData = unknown, TVariables = void, TError = CompatibleError> extends Omit<UseQueryOptions<TFnData, TError, TFnData, QueryKey>, 'queryFn' | 'enabled' | 'select' | 'suspense' | 'throwOnError' | 'placeholderData' | 'keepPreviousData' | 'useErrorBoundary'>, AdditionalQueryOptions<TFnData, TVariables> {
|
|
56
|
+
export interface CreateSuspenseQueryOptions<TFnData = unknown, TVariables = void, TError = CompatibleError> extends Omit<UseQueryOptions<TFnData, TError, TFnData, QueryKey>, 'queryKey' | 'queryFn' | 'enabled' | 'select' | 'suspense' | 'throwOnError' | 'placeholderData' | 'keepPreviousData' | 'useErrorBoundary'>, AdditionalQueryOptions<TFnData, TVariables> {
|
|
57
|
+
queryKey: QueryKey;
|
|
56
58
|
use?: Middleware<SuspenseQueryHook<Clone<TFnData>, Clone<TVariables>, Clone<TError>>>[];
|
|
59
|
+
variables?: TVariables;
|
|
57
60
|
}
|
|
58
61
|
export interface SuspenseQueryHookOptions<TFnData, TError, TData, TVariables> extends Omit<UseQueryOptions<TFnData, TError, TData, QueryKey>, 'queryKey' | 'queryFn' | 'queryKeyHashFn' | 'enabled' | 'suspense' | 'throwOnError' | 'placeholderData' | 'keepPreviousData' | 'useErrorBoundary'> {
|
|
59
62
|
use?: Middleware<SuspenseQueryHook<TFnData, TVariables, TVariables>>[];
|
|
@@ -63,8 +66,10 @@ export type SuspenseQueryHookResult<TData, TError> = Omit<QueryObserverSuccessRe
|
|
|
63
66
|
export interface SuspenseQueryHook<TFnData = unknown, TVariables = void, TError = CompatibleError> extends ExposeMethods<TFnData, TVariables, TError> {
|
|
64
67
|
<TData = TFnData>(options?: SuspenseQueryHookOptions<TFnData, TError, TData, TVariables>, queryClient?: CompatibleWithV4<QueryClient, void>): SuspenseQueryHookResult<TData, TError>;
|
|
65
68
|
}
|
|
66
|
-
export interface CreateInfiniteQueryOptions<TFnData = unknown, TVariables = void, TError = CompatibleError, TPageParam = number> extends Omit<CompatibleUseInfiniteQueryOptions<TFnData, TFnData, TError, TPageParam>, 'queryFn' | 'select'>, AdditionalQueryOptions<TFnData, TVariables, TPageParam> {
|
|
69
|
+
export interface CreateInfiniteQueryOptions<TFnData = unknown, TVariables = void, TError = CompatibleError, TPageParam = number> extends Omit<CompatibleUseInfiniteQueryOptions<TFnData, TFnData, TError, TPageParam>, 'queryKey' | 'queryFn' | 'select'>, AdditionalQueryOptions<TFnData, TVariables, TPageParam> {
|
|
70
|
+
queryKey: QueryKey;
|
|
67
71
|
use?: Middleware<InfiniteQueryHook<Clone<TFnData>, Clone<TVariables>, Clone<TError>, Clone<TPageParam>>>[];
|
|
72
|
+
variables?: TVariables;
|
|
68
73
|
}
|
|
69
74
|
export interface InfiniteQueryHookOptions<TFnData, TError, TData, TVariables, TPageParam = number> extends Omit<CompatibleUseInfiniteQueryOptions<TFnData, TData, TError, TPageParam>, 'queryKey' | 'queryFn' | 'queryKeyHashFn' | 'initialPageParam' | 'getPreviousPageParam' | 'getNextPageParam'> {
|
|
70
75
|
use?: Middleware<InfiniteQueryHook<TFnData, TVariables, TError, TPageParam>>[];
|
|
@@ -79,8 +84,10 @@ export interface InfiniteQueryHook<TFnData = unknown, TVariables = void, TError
|
|
|
79
84
|
<TData = CompatibleWithV4<InfiniteData<TFnData, TPageParam>, TFnData>>(options: DefinedInfiniteQueryHookOptions<TFnData, TError, TData, TVariables, TPageParam>, queryClient?: CompatibleWithV4<QueryClient, void>): DefinedInfiniteQueryHookResult<TData, TError>;
|
|
80
85
|
<TData = CompatibleWithV4<InfiniteData<TFnData, TPageParam>, TFnData>>(options?: InfiniteQueryHookOptions<TFnData, TError, TData, TVariables, TPageParam>, queryClient?: CompatibleWithV4<QueryClient, void>): InfiniteQueryHookResult<TData, TError>;
|
|
81
86
|
}
|
|
82
|
-
export interface CreateSuspenseInfiniteQueryOptions<TFnData = unknown, TVariables = void, TError = CompatibleError, TPageParam = number> extends Omit<CompatibleUseInfiniteQueryOptions<TFnData, TFnData, TError, TPageParam>, 'queryFn' | 'enabled' | 'select' | 'suspense' | 'throwOnError' | 'placeholderData' | 'keepPreviousData' | 'useErrorBoundary'>, AdditionalQueryOptions<TFnData, TVariables, TPageParam> {
|
|
87
|
+
export interface CreateSuspenseInfiniteQueryOptions<TFnData = unknown, TVariables = void, TError = CompatibleError, TPageParam = number> extends Omit<CompatibleUseInfiniteQueryOptions<TFnData, TFnData, TError, TPageParam>, 'queryKey' | 'queryFn' | 'enabled' | 'select' | 'suspense' | 'throwOnError' | 'placeholderData' | 'keepPreviousData' | 'useErrorBoundary'>, AdditionalQueryOptions<TFnData, TVariables, TPageParam> {
|
|
88
|
+
queryKey: QueryKey;
|
|
83
89
|
use?: Middleware<SuspenseInfiniteQueryHook<Clone<TFnData>, Clone<TVariables>, Clone<TError>, Clone<TPageParam>>>[];
|
|
90
|
+
variables?: TVariables;
|
|
84
91
|
}
|
|
85
92
|
export interface SuspenseInfiniteQueryHookOptions<TFnData, TError, TData, TVariables, TPageParam = number> extends Omit<CompatibleUseInfiniteQueryOptions<TFnData, TData, TError, TPageParam>, 'queryKey' | 'queryFn' | 'queryKeyHashFn' | 'enabled' | 'initialPageParam' | 'getPreviousPageParam' | 'getNextPageParam' | 'suspense' | 'throwOnError' | 'placeholderData' | 'keepPreviousData' | 'useErrorBoundary'> {
|
|
86
93
|
use?: Middleware<SuspenseInfiniteQueryHook<TFnData, TVariables, TVariables>>[];
|
package/build/stats-html.html
CHANGED
|
@@ -4014,7 +4014,7 @@ var drawChart = (function (exports) {
|
|
|
4014
4014
|
</script>
|
|
4015
4015
|
<script>
|
|
4016
4016
|
/*<!--*/
|
|
4017
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"zip.esm.js","children":[{"name":"src","children":[{"uid":"
|
|
4017
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"zip.esm.js","children":[{"name":"src","children":[{"uid":"b894-1","name":"utils.ts"},{"uid":"b894-3","name":"createBaseQuery.ts"},{"uid":"b894-5","name":"createQuery.ts"},{"uid":"b894-7","name":"createSuspenseQuery.ts"},{"uid":"b894-9","name":"createInfiniteQuery.ts"},{"uid":"b894-11","name":"createSuspenseInfiniteQuery.ts"},{"uid":"b894-13","name":"createMutation.ts"},{"uid":"b894-15","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b894-1":{"renderedLength":906,"gzipLength":453,"brotliLength":0,"mainUid":"b894-0"},"b894-3":{"renderedLength":1162,"gzipLength":397,"brotliLength":0,"mainUid":"b894-2"},"b894-5":{"renderedLength":91,"gzipLength":87,"brotliLength":0,"mainUid":"b894-4"},"b894-7":{"renderedLength":179,"gzipLength":118,"brotliLength":0,"mainUid":"b894-6"},"b894-9":{"renderedLength":107,"gzipLength":97,"brotliLength":0,"mainUid":"b894-8"},"b894-11":{"renderedLength":203,"gzipLength":128,"brotliLength":0,"mainUid":"b894-10"},"b894-13":{"renderedLength":271,"gzipLength":168,"brotliLength":0,"mainUid":"b894-12"},"b894-15":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"b894-14"}},"nodeMetas":{"b894-0":{"id":"/src/utils.ts","moduleParts":{"zip.esm.js":"b894-1"},"imported":[{"uid":"b894-17"}],"importedBy":[{"uid":"b894-14"},{"uid":"b894-6"},{"uid":"b894-10"},{"uid":"b894-12"},{"uid":"b894-2"}]},"b894-2":{"id":"/src/createBaseQuery.ts","moduleParts":{"zip.esm.js":"b894-3"},"imported":[{"uid":"b894-0"}],"importedBy":[{"uid":"b894-4"},{"uid":"b894-6"},{"uid":"b894-8"},{"uid":"b894-10"}]},"b894-4":{"id":"/src/createQuery.ts","moduleParts":{"zip.esm.js":"b894-5"},"imported":[{"uid":"b894-17"},{"uid":"b894-2"}],"importedBy":[{"uid":"b894-14"}]},"b894-6":{"id":"/src/createSuspenseQuery.ts","moduleParts":{"zip.esm.js":"b894-7"},"imported":[{"uid":"b894-17"},{"uid":"b894-2"},{"uid":"b894-0"}],"importedBy":[{"uid":"b894-14"}]},"b894-8":{"id":"/src/createInfiniteQuery.ts","moduleParts":{"zip.esm.js":"b894-9"},"imported":[{"uid":"b894-17"},{"uid":"b894-2"}],"importedBy":[{"uid":"b894-14"}]},"b894-10":{"id":"/src/createSuspenseInfiniteQuery.ts","moduleParts":{"zip.esm.js":"b894-11"},"imported":[{"uid":"b894-17"},{"uid":"b894-2"},{"uid":"b894-0"}],"importedBy":[{"uid":"b894-14"}]},"b894-12":{"id":"/src/createMutation.ts","moduleParts":{"zip.esm.js":"b894-13"},"imported":[{"uid":"b894-17"},{"uid":"b894-0"}],"importedBy":[{"uid":"b894-14"}]},"b894-14":{"id":"/src/index.ts","moduleParts":{"zip.esm.js":"b894-15"},"imported":[{"uid":"b894-4"},{"uid":"b894-6"},{"uid":"b894-8"},{"uid":"b894-10"},{"uid":"b894-12"},{"uid":"b894-16"},{"uid":"b894-0"}],"importedBy":[],"isEntry":true},"b894-16":{"id":"/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"b894-14"}]},"b894-17":{"id":"@tanstack/react-query","moduleParts":{},"imported":[],"importedBy":[{"uid":"b894-4"},{"uid":"b894-6"},{"uid":"b894-8"},{"uid":"b894-10"},{"uid":"b894-12"},{"uid":"b894-0"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
4018
4018
|
|
|
4019
4019
|
const run = () => {
|
|
4020
4020
|
const width = window.innerWidth;
|
package/build/stats.json
CHANGED
|
@@ -10,35 +10,35 @@
|
|
|
10
10
|
"name": "src",
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
|
-
"uid": "
|
|
13
|
+
"uid": "b894-19",
|
|
14
14
|
"name": "utils.ts"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"uid": "
|
|
17
|
+
"uid": "b894-21",
|
|
18
18
|
"name": "createBaseQuery.ts"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
"uid": "
|
|
21
|
+
"uid": "b894-23",
|
|
22
22
|
"name": "createQuery.ts"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"uid": "
|
|
25
|
+
"uid": "b894-25",
|
|
26
26
|
"name": "createSuspenseQuery.ts"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"uid": "
|
|
29
|
+
"uid": "b894-27",
|
|
30
30
|
"name": "createInfiniteQuery.ts"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
"uid": "
|
|
33
|
+
"uid": "b894-29",
|
|
34
34
|
"name": "createSuspenseInfiniteQuery.ts"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"uid": "
|
|
37
|
+
"uid": "b894-31",
|
|
38
38
|
"name": "createMutation.ts"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
"uid": "
|
|
41
|
+
"uid": "b894-33",
|
|
42
42
|
"name": "index.ts"
|
|
43
43
|
}
|
|
44
44
|
]
|
|
@@ -49,273 +49,273 @@
|
|
|
49
49
|
"isRoot": true
|
|
50
50
|
},
|
|
51
51
|
"nodeParts": {
|
|
52
|
-
"
|
|
52
|
+
"b894-19": {
|
|
53
53
|
"renderedLength": 906,
|
|
54
54
|
"gzipLength": 453,
|
|
55
55
|
"brotliLength": 0,
|
|
56
|
-
"mainUid": "
|
|
56
|
+
"mainUid": "b894-18"
|
|
57
57
|
},
|
|
58
|
-
"
|
|
58
|
+
"b894-21": {
|
|
59
59
|
"renderedLength": 1162,
|
|
60
60
|
"gzipLength": 397,
|
|
61
61
|
"brotliLength": 0,
|
|
62
|
-
"mainUid": "
|
|
62
|
+
"mainUid": "b894-20"
|
|
63
63
|
},
|
|
64
|
-
"
|
|
64
|
+
"b894-23": {
|
|
65
65
|
"renderedLength": 91,
|
|
66
66
|
"gzipLength": 87,
|
|
67
67
|
"brotliLength": 0,
|
|
68
|
-
"mainUid": "
|
|
68
|
+
"mainUid": "b894-22"
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"b894-25": {
|
|
71
71
|
"renderedLength": 179,
|
|
72
72
|
"gzipLength": 118,
|
|
73
73
|
"brotliLength": 0,
|
|
74
|
-
"mainUid": "
|
|
74
|
+
"mainUid": "b894-24"
|
|
75
75
|
},
|
|
76
|
-
"
|
|
76
|
+
"b894-27": {
|
|
77
77
|
"renderedLength": 107,
|
|
78
78
|
"gzipLength": 97,
|
|
79
79
|
"brotliLength": 0,
|
|
80
|
-
"mainUid": "
|
|
80
|
+
"mainUid": "b894-26"
|
|
81
81
|
},
|
|
82
|
-
"
|
|
82
|
+
"b894-29": {
|
|
83
83
|
"renderedLength": 203,
|
|
84
84
|
"gzipLength": 128,
|
|
85
85
|
"brotliLength": 0,
|
|
86
|
-
"mainUid": "
|
|
86
|
+
"mainUid": "b894-28"
|
|
87
87
|
},
|
|
88
|
-
"
|
|
88
|
+
"b894-31": {
|
|
89
89
|
"renderedLength": 271,
|
|
90
90
|
"gzipLength": 168,
|
|
91
91
|
"brotliLength": 0,
|
|
92
|
-
"mainUid": "
|
|
92
|
+
"mainUid": "b894-30"
|
|
93
93
|
},
|
|
94
|
-
"
|
|
94
|
+
"b894-33": {
|
|
95
95
|
"renderedLength": 0,
|
|
96
96
|
"gzipLength": 0,
|
|
97
97
|
"brotliLength": 0,
|
|
98
|
-
"mainUid": "
|
|
98
|
+
"mainUid": "b894-32"
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"nodeMetas": {
|
|
102
|
-
"
|
|
102
|
+
"b894-18": {
|
|
103
103
|
"id": "/src/utils.ts",
|
|
104
104
|
"moduleParts": {
|
|
105
|
-
"zip.esm.js": "
|
|
105
|
+
"zip.esm.js": "b894-19"
|
|
106
106
|
},
|
|
107
107
|
"imported": [
|
|
108
108
|
{
|
|
109
|
-
"uid": "
|
|
109
|
+
"uid": "b894-35"
|
|
110
110
|
}
|
|
111
111
|
],
|
|
112
112
|
"importedBy": [
|
|
113
113
|
{
|
|
114
|
-
"uid": "
|
|
114
|
+
"uid": "b894-32"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
"uid": "
|
|
117
|
+
"uid": "b894-24"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
"uid": "
|
|
120
|
+
"uid": "b894-28"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
"uid": "
|
|
123
|
+
"uid": "b894-30"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
"uid": "
|
|
126
|
+
"uid": "b894-20"
|
|
127
127
|
}
|
|
128
128
|
]
|
|
129
129
|
},
|
|
130
|
-
"
|
|
130
|
+
"b894-20": {
|
|
131
131
|
"id": "/src/createBaseQuery.ts",
|
|
132
132
|
"moduleParts": {
|
|
133
|
-
"zip.esm.js": "
|
|
133
|
+
"zip.esm.js": "b894-21"
|
|
134
134
|
},
|
|
135
135
|
"imported": [
|
|
136
136
|
{
|
|
137
|
-
"uid": "
|
|
137
|
+
"uid": "b894-18"
|
|
138
138
|
}
|
|
139
139
|
],
|
|
140
140
|
"importedBy": [
|
|
141
141
|
{
|
|
142
|
-
"uid": "
|
|
142
|
+
"uid": "b894-22"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
|
-
"uid": "
|
|
145
|
+
"uid": "b894-24"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
"uid": "
|
|
148
|
+
"uid": "b894-26"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
|
-
"uid": "
|
|
151
|
+
"uid": "b894-28"
|
|
152
152
|
}
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
|
-
"
|
|
155
|
+
"b894-22": {
|
|
156
156
|
"id": "/src/createQuery.ts",
|
|
157
157
|
"moduleParts": {
|
|
158
|
-
"zip.esm.js": "
|
|
158
|
+
"zip.esm.js": "b894-23"
|
|
159
159
|
},
|
|
160
160
|
"imported": [
|
|
161
161
|
{
|
|
162
|
-
"uid": "
|
|
162
|
+
"uid": "b894-35"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
"uid": "
|
|
165
|
+
"uid": "b894-20"
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
168
|
"importedBy": [
|
|
169
169
|
{
|
|
170
|
-
"uid": "
|
|
170
|
+
"uid": "b894-32"
|
|
171
171
|
}
|
|
172
172
|
]
|
|
173
173
|
},
|
|
174
|
-
"
|
|
174
|
+
"b894-24": {
|
|
175
175
|
"id": "/src/createSuspenseQuery.ts",
|
|
176
176
|
"moduleParts": {
|
|
177
|
-
"zip.esm.js": "
|
|
177
|
+
"zip.esm.js": "b894-25"
|
|
178
178
|
},
|
|
179
179
|
"imported": [
|
|
180
180
|
{
|
|
181
|
-
"uid": "
|
|
181
|
+
"uid": "b894-35"
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
|
-
"uid": "
|
|
184
|
+
"uid": "b894-20"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
|
-
"uid": "
|
|
187
|
+
"uid": "b894-18"
|
|
188
188
|
}
|
|
189
189
|
],
|
|
190
190
|
"importedBy": [
|
|
191
191
|
{
|
|
192
|
-
"uid": "
|
|
192
|
+
"uid": "b894-32"
|
|
193
193
|
}
|
|
194
194
|
]
|
|
195
195
|
},
|
|
196
|
-
"
|
|
196
|
+
"b894-26": {
|
|
197
197
|
"id": "/src/createInfiniteQuery.ts",
|
|
198
198
|
"moduleParts": {
|
|
199
|
-
"zip.esm.js": "
|
|
199
|
+
"zip.esm.js": "b894-27"
|
|
200
200
|
},
|
|
201
201
|
"imported": [
|
|
202
202
|
{
|
|
203
|
-
"uid": "
|
|
203
|
+
"uid": "b894-35"
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
"uid": "
|
|
206
|
+
"uid": "b894-20"
|
|
207
207
|
}
|
|
208
208
|
],
|
|
209
209
|
"importedBy": [
|
|
210
210
|
{
|
|
211
|
-
"uid": "
|
|
211
|
+
"uid": "b894-32"
|
|
212
212
|
}
|
|
213
213
|
]
|
|
214
214
|
},
|
|
215
|
-
"
|
|
215
|
+
"b894-28": {
|
|
216
216
|
"id": "/src/createSuspenseInfiniteQuery.ts",
|
|
217
217
|
"moduleParts": {
|
|
218
|
-
"zip.esm.js": "
|
|
218
|
+
"zip.esm.js": "b894-29"
|
|
219
219
|
},
|
|
220
220
|
"imported": [
|
|
221
221
|
{
|
|
222
|
-
"uid": "
|
|
222
|
+
"uid": "b894-35"
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
|
-
"uid": "
|
|
225
|
+
"uid": "b894-20"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
"uid": "
|
|
228
|
+
"uid": "b894-18"
|
|
229
229
|
}
|
|
230
230
|
],
|
|
231
231
|
"importedBy": [
|
|
232
232
|
{
|
|
233
|
-
"uid": "
|
|
233
|
+
"uid": "b894-32"
|
|
234
234
|
}
|
|
235
235
|
]
|
|
236
236
|
},
|
|
237
|
-
"
|
|
237
|
+
"b894-30": {
|
|
238
238
|
"id": "/src/createMutation.ts",
|
|
239
239
|
"moduleParts": {
|
|
240
|
-
"zip.esm.js": "
|
|
240
|
+
"zip.esm.js": "b894-31"
|
|
241
241
|
},
|
|
242
242
|
"imported": [
|
|
243
243
|
{
|
|
244
|
-
"uid": "
|
|
244
|
+
"uid": "b894-35"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
"uid": "
|
|
247
|
+
"uid": "b894-18"
|
|
248
248
|
}
|
|
249
249
|
],
|
|
250
250
|
"importedBy": [
|
|
251
251
|
{
|
|
252
|
-
"uid": "
|
|
252
|
+
"uid": "b894-32"
|
|
253
253
|
}
|
|
254
254
|
]
|
|
255
255
|
},
|
|
256
|
-
"
|
|
256
|
+
"b894-32": {
|
|
257
257
|
"id": "/src/index.ts",
|
|
258
258
|
"moduleParts": {
|
|
259
|
-
"zip.esm.js": "
|
|
259
|
+
"zip.esm.js": "b894-33"
|
|
260
260
|
},
|
|
261
261
|
"imported": [
|
|
262
262
|
{
|
|
263
|
-
"uid": "
|
|
263
|
+
"uid": "b894-22"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
"uid": "
|
|
266
|
+
"uid": "b894-24"
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
|
-
"uid": "
|
|
269
|
+
"uid": "b894-26"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
|
-
"uid": "
|
|
272
|
+
"uid": "b894-28"
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
|
-
"uid": "
|
|
275
|
+
"uid": "b894-30"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
"uid": "
|
|
278
|
+
"uid": "b894-34"
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
|
-
"uid": "
|
|
281
|
+
"uid": "b894-18"
|
|
282
282
|
}
|
|
283
283
|
],
|
|
284
284
|
"importedBy": [],
|
|
285
285
|
"isEntry": true
|
|
286
286
|
},
|
|
287
|
-
"
|
|
287
|
+
"b894-34": {
|
|
288
288
|
"id": "/src/types.ts",
|
|
289
289
|
"moduleParts": {},
|
|
290
290
|
"imported": [],
|
|
291
291
|
"importedBy": [
|
|
292
292
|
{
|
|
293
|
-
"uid": "
|
|
293
|
+
"uid": "b894-32"
|
|
294
294
|
}
|
|
295
295
|
]
|
|
296
296
|
},
|
|
297
|
-
"
|
|
297
|
+
"b894-35": {
|
|
298
298
|
"id": "@tanstack/react-query",
|
|
299
299
|
"moduleParts": {},
|
|
300
300
|
"imported": [],
|
|
301
301
|
"importedBy": [
|
|
302
302
|
{
|
|
303
|
-
"uid": "
|
|
303
|
+
"uid": "b894-22"
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
|
-
"uid": "
|
|
306
|
+
"uid": "b894-24"
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
|
-
"uid": "
|
|
309
|
+
"uid": "b894-26"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
|
-
"uid": "
|
|
312
|
+
"uid": "b894-28"
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
|
-
"uid": "
|
|
315
|
+
"uid": "b894-30"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
|
-
"uid": "
|
|
318
|
+
"uid": "b894-18"
|
|
319
319
|
}
|
|
320
320
|
],
|
|
321
321
|
"isExternal": true
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -147,9 +147,10 @@ export interface CreateQueryOptions<
|
|
|
147
147
|
TError = CompatibleError
|
|
148
148
|
> extends Omit<
|
|
149
149
|
UseQueryOptions<TFnData, TError, TFnData, QueryKey>,
|
|
150
|
-
'queryFn' | 'select'
|
|
150
|
+
'queryKey' | 'queryFn' | 'select'
|
|
151
151
|
>,
|
|
152
152
|
AdditionalQueryOptions<TFnData, TVariables> {
|
|
153
|
+
queryKey: QueryKey
|
|
153
154
|
use?: Middleware<
|
|
154
155
|
QueryHook<Clone<TFnData>, Clone<TVariables>, Clone<TError>>
|
|
155
156
|
>[]
|
|
@@ -203,6 +204,7 @@ export interface CreateSuspenseQueryOptions<
|
|
|
203
204
|
TError = CompatibleError
|
|
204
205
|
> extends Omit<
|
|
205
206
|
UseQueryOptions<TFnData, TError, TFnData, QueryKey>,
|
|
207
|
+
| 'queryKey'
|
|
206
208
|
| 'queryFn'
|
|
207
209
|
| 'enabled'
|
|
208
210
|
| 'select'
|
|
@@ -213,9 +215,11 @@ export interface CreateSuspenseQueryOptions<
|
|
|
213
215
|
| 'useErrorBoundary'
|
|
214
216
|
>,
|
|
215
217
|
AdditionalQueryOptions<TFnData, TVariables> {
|
|
218
|
+
queryKey: QueryKey
|
|
216
219
|
use?: Middleware<
|
|
217
220
|
SuspenseQueryHook<Clone<TFnData>, Clone<TVariables>, Clone<TError>>
|
|
218
221
|
>[]
|
|
222
|
+
variables?: TVariables
|
|
219
223
|
}
|
|
220
224
|
|
|
221
225
|
export interface SuspenseQueryHookOptions<TFnData, TError, TData, TVariables>
|
|
@@ -260,9 +264,10 @@ export interface CreateInfiniteQueryOptions<
|
|
|
260
264
|
TPageParam = number
|
|
261
265
|
> extends Omit<
|
|
262
266
|
CompatibleUseInfiniteQueryOptions<TFnData, TFnData, TError, TPageParam>,
|
|
263
|
-
'queryFn' | 'select'
|
|
267
|
+
'queryKey' | 'queryFn' | 'select'
|
|
264
268
|
>,
|
|
265
269
|
AdditionalQueryOptions<TFnData, TVariables, TPageParam> {
|
|
270
|
+
queryKey: QueryKey
|
|
266
271
|
use?: Middleware<
|
|
267
272
|
InfiniteQueryHook<
|
|
268
273
|
Clone<TFnData>,
|
|
@@ -271,6 +276,7 @@ export interface CreateInfiniteQueryOptions<
|
|
|
271
276
|
Clone<TPageParam>
|
|
272
277
|
>
|
|
273
278
|
>[]
|
|
279
|
+
variables?: TVariables
|
|
274
280
|
}
|
|
275
281
|
|
|
276
282
|
export interface InfiniteQueryHookOptions<
|
|
@@ -354,6 +360,7 @@ export interface CreateSuspenseInfiniteQueryOptions<
|
|
|
354
360
|
TPageParam = number
|
|
355
361
|
> extends Omit<
|
|
356
362
|
CompatibleUseInfiniteQueryOptions<TFnData, TFnData, TError, TPageParam>,
|
|
363
|
+
| 'queryKey'
|
|
357
364
|
| 'queryFn'
|
|
358
365
|
| 'enabled'
|
|
359
366
|
| 'select'
|
|
@@ -364,6 +371,7 @@ export interface CreateSuspenseInfiniteQueryOptions<
|
|
|
364
371
|
| 'useErrorBoundary'
|
|
365
372
|
>,
|
|
366
373
|
AdditionalQueryOptions<TFnData, TVariables, TPageParam> {
|
|
374
|
+
queryKey: QueryKey
|
|
367
375
|
use?: Middleware<
|
|
368
376
|
SuspenseInfiniteQueryHook<
|
|
369
377
|
Clone<TFnData>,
|
|
@@ -372,6 +380,7 @@ export interface CreateSuspenseInfiniteQueryOptions<
|
|
|
372
380
|
Clone<TPageParam>
|
|
373
381
|
>
|
|
374
382
|
>[]
|
|
383
|
+
variables?: TVariables
|
|
375
384
|
}
|
|
376
385
|
|
|
377
386
|
export interface SuspenseInfiniteQueryHookOptions<
|