@tanstack/solid-query 6.0.0-beta.3 → 6.0.0-beta.5
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/_tsup-dts-rollup.d.cts +39 -68
- package/build/_tsup-dts-rollup.d.ts +39 -68
- package/build/dev.cjs +85 -56
- package/build/dev.d.cts +4 -7
- package/build/dev.d.ts +4 -7
- package/build/dev.js +86 -57
- package/build/index.cjs +85 -56
- package/build/index.d.cts +4 -7
- package/build/index.d.ts +4 -7
- package/build/index.js +86 -57
- package/package.json +6 -6
- package/src/QueryClientProvider.tsx +1 -1
- package/src/index.ts +3 -3
- package/src/infiniteQueryOptions.ts +3 -15
- package/src/mutationOptions.ts +7 -7
- package/src/queryOptions.ts +3 -3
- package/src/types.ts +6 -6
- package/src/useBaseQuery.ts +113 -44
- package/src/useIsFetching.ts +1 -1
- package/src/useIsMutating.ts +1 -1
- package/src/useMutation.ts +12 -5
- package/src/useMutationState.ts +1 -1
- package/src/useQueries.ts +23 -18
|
@@ -19,7 +19,6 @@ import { dehydrate } from '@tanstack/query-core';
|
|
|
19
19
|
import { DehydratedState } from '@tanstack/query-core';
|
|
20
20
|
import { DehydrateOptions } from '@tanstack/query-core';
|
|
21
21
|
import { DistributiveOmit } from '@tanstack/query-core';
|
|
22
|
-
import { Enabled } from '@tanstack/query-core';
|
|
23
22
|
import { EnsureInfiniteQueryDataOptions } from '@tanstack/query-core';
|
|
24
23
|
import { EnsureQueryDataOptions } from '@tanstack/query-core';
|
|
25
24
|
import { environmentManager } from '@tanstack/query-core';
|
|
@@ -55,12 +54,11 @@ import { InvalidateOptions } from '@tanstack/query-core';
|
|
|
55
54
|
import { InvalidateQueryFilters } from '@tanstack/query-core';
|
|
56
55
|
import { isCancelledError } from '@tanstack/query-core';
|
|
57
56
|
import { isServer } from '@tanstack/query-core';
|
|
58
|
-
import { JSX } from '
|
|
57
|
+
import type { JSX } from '@solidjs/web';
|
|
59
58
|
import { keepPreviousData } from '@tanstack/query-core';
|
|
60
59
|
import { ManagedTimerId } from '@tanstack/query-core';
|
|
61
60
|
import { matchMutation } from '@tanstack/query-core';
|
|
62
61
|
import { matchQuery } from '@tanstack/query-core';
|
|
63
|
-
import type { MockInstance } from 'vitest';
|
|
64
62
|
import { MutateFunction } from '@tanstack/query-core';
|
|
65
63
|
import { MutateOptions } from '@tanstack/query-core';
|
|
66
64
|
import { Mutation } from '@tanstack/query-core';
|
|
@@ -79,12 +77,10 @@ import { MutationObserverLoadingResult } from '@tanstack/query-core';
|
|
|
79
77
|
import { MutationObserverOptions } from '@tanstack/query-core';
|
|
80
78
|
import { MutationObserverResult } from '@tanstack/query-core';
|
|
81
79
|
import { MutationObserverSuccessResult } from '@tanstack/query-core';
|
|
82
|
-
import { MutationOptions } from '@tanstack/query-core';
|
|
83
80
|
import { MutationScope } from '@tanstack/query-core';
|
|
84
81
|
import { MutationState } from '@tanstack/query-core';
|
|
85
82
|
import { MutationStatus } from '@tanstack/query-core';
|
|
86
83
|
import { NetworkMode } from '@tanstack/query-core';
|
|
87
|
-
import { NoInfer as NoInfer_2 } from '@tanstack/query-core';
|
|
88
84
|
import { NonUndefinedGuard } from '@tanstack/query-core';
|
|
89
85
|
import { noop } from '@tanstack/query-core';
|
|
90
86
|
import { NotifyEvent } from '@tanstack/query-core';
|
|
@@ -93,15 +89,14 @@ import { notifyManager } from '@tanstack/query-core';
|
|
|
93
89
|
import { NotifyOnChangeProps } from '@tanstack/query-core';
|
|
94
90
|
import { OmitKeyof } from '@tanstack/query-core';
|
|
95
91
|
import { onlineManager } from '@tanstack/query-core';
|
|
96
|
-
import { Options } from 'tsup';
|
|
97
92
|
import { Override } from '@tanstack/query-core';
|
|
98
|
-
import type { ParentProps } from 'solid-js';
|
|
99
93
|
import { partialMatchKey } from '@tanstack/query-core';
|
|
100
94
|
import { PlaceholderDataFunction } from '@tanstack/query-core';
|
|
101
95
|
import { QueriesObserver } from '@tanstack/query-core';
|
|
102
96
|
import { QueriesObserverOptions } from '@tanstack/query-core';
|
|
103
97
|
import { QueriesPlaceholderDataFunction } from '@tanstack/query-core';
|
|
104
98
|
import { Query } from '@tanstack/query-core';
|
|
99
|
+
import { QueryBooleanOption } from '@tanstack/query-core';
|
|
105
100
|
import { QueryCache } from '@tanstack/query-core';
|
|
106
101
|
import { QueryCacheNotifyEvent } from '@tanstack/query-core';
|
|
107
102
|
import { QueryClient as QueryClient_2 } from '@tanstack/query-core';
|
|
@@ -122,7 +117,6 @@ import { QueryObserverPlaceholderResult } from '@tanstack/query-core';
|
|
|
122
117
|
import { QueryObserverRefetchErrorResult } from '@tanstack/query-core';
|
|
123
118
|
import { QueryObserverResult } from '@tanstack/query-core';
|
|
124
119
|
import { QueryObserverSuccessResult } from '@tanstack/query-core';
|
|
125
|
-
import { QueryOptions } from '@tanstack/query-core';
|
|
126
120
|
import { QueryPersister } from '@tanstack/query-core';
|
|
127
121
|
import { QueryState } from '@tanstack/query-core';
|
|
128
122
|
import { QueryStatus } from '@tanstack/query-core';
|
|
@@ -145,15 +139,10 @@ import { TimeoutProvider } from '@tanstack/query-core';
|
|
|
145
139
|
import { UnsetMarker } from '@tanstack/query-core';
|
|
146
140
|
import { unsetMarker } from '@tanstack/query-core';
|
|
147
141
|
import { Updater } from '@tanstack/query-core';
|
|
148
|
-
import { UserConfig } from 'vite';
|
|
149
142
|
import { WithRequired } from '@tanstack/query-core';
|
|
150
143
|
|
|
151
144
|
export { AnyDataTag }
|
|
152
145
|
|
|
153
|
-
export declare function Blink(props: {
|
|
154
|
-
duration: number;
|
|
155
|
-
} & ParentProps): JSX;
|
|
156
|
-
|
|
157
146
|
export { CancelledError }
|
|
158
147
|
|
|
159
148
|
export { CancelOptions }
|
|
@@ -172,14 +161,6 @@ export { dataTagErrorSymbol }
|
|
|
172
161
|
|
|
173
162
|
export { dataTagSymbol }
|
|
174
163
|
|
|
175
|
-
export declare const default_alias: any[];
|
|
176
|
-
|
|
177
|
-
export declare const default_alias_1: any[];
|
|
178
|
-
|
|
179
|
-
export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
180
|
-
|
|
181
|
-
export declare const default_alias_3: UserConfig;
|
|
182
|
-
|
|
183
164
|
export { DefaultedInfiniteQueryObserverOptions }
|
|
184
165
|
|
|
185
166
|
export { DefaultedQueryObserverOptions }
|
|
@@ -200,13 +181,13 @@ export { defaultShouldDehydrateQuery }
|
|
|
200
181
|
|
|
201
182
|
export { DefinedInfiniteQueryObserverResult }
|
|
202
183
|
|
|
203
|
-
declare type DefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<
|
|
184
|
+
declare type DefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<InfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
|
204
185
|
initialData: NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>> | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>);
|
|
205
186
|
}>;
|
|
206
187
|
export { DefinedInitialDataInfiniteOptions }
|
|
207
188
|
export { DefinedInitialDataInfiniteOptions as DefinedInitialDataInfiniteOptions_alias_1 }
|
|
208
189
|
|
|
209
|
-
declare type DefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<
|
|
190
|
+
declare type DefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<QueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
210
191
|
initialData: TQueryFnData | (() => TQueryFnData);
|
|
211
192
|
}>;
|
|
212
193
|
export { DefinedInitialDataOptions }
|
|
@@ -237,8 +218,6 @@ export { DehydrateOptions }
|
|
|
237
218
|
|
|
238
219
|
export { DistributiveOmit }
|
|
239
220
|
|
|
240
|
-
export { Enabled }
|
|
241
|
-
|
|
242
221
|
export { EnsureInfiniteQueryDataOptions }
|
|
243
222
|
|
|
244
223
|
export { EnsureQueryDataOptions }
|
|
@@ -337,6 +316,25 @@ export { InfiniteQueryObserverResult }
|
|
|
337
316
|
|
|
338
317
|
export { InfiniteQueryObserverSuccessResult }
|
|
339
318
|
|
|
319
|
+
declare interface InfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> extends OmitKeyof<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'queryKey' | 'suspense'> {
|
|
320
|
+
queryKey: TQueryKey;
|
|
321
|
+
/**
|
|
322
|
+
* Only applicable while rendering queries on the server with streaming.
|
|
323
|
+
* Set `deferStream` to `true` to wait for the query to resolve on the server before flushing the stream.
|
|
324
|
+
* This can be useful to avoid sending a loading state to the client before the query has resolved.
|
|
325
|
+
* Defaults to `false`.
|
|
326
|
+
*/
|
|
327
|
+
deferStream?: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* @deprecated The `suspense` option has been deprecated in v5 and will be removed in the next major version.
|
|
330
|
+
* The `data` property on useInfiniteQuery is a SolidJS resource and will automatically suspend when the data is loading.
|
|
331
|
+
* Setting `suspense` to `false` will be a no-op.
|
|
332
|
+
*/
|
|
333
|
+
suspense?: boolean;
|
|
334
|
+
}
|
|
335
|
+
export { InfiniteQueryOptions }
|
|
336
|
+
export { InfiniteQueryOptions as InfiniteQueryOptions_alias_1 }
|
|
337
|
+
|
|
340
338
|
declare function infiniteQueryOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: ReturnType<DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>>): ReturnType<DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & {
|
|
341
339
|
queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>>;
|
|
342
340
|
};
|
|
@@ -375,8 +373,6 @@ export { matchQuery }
|
|
|
375
373
|
|
|
376
374
|
declare type MAXIMUM_DEPTH = 20;
|
|
377
375
|
|
|
378
|
-
export declare function mockOnlineManagerIsOnline(value: boolean): MockInstance<() => boolean>;
|
|
379
|
-
|
|
380
376
|
export { MutateFunction }
|
|
381
377
|
|
|
382
378
|
export { MutateOptions }
|
|
@@ -413,11 +409,14 @@ export { MutationObserverResult }
|
|
|
413
409
|
|
|
414
410
|
export { MutationObserverSuccessResult }
|
|
415
411
|
|
|
412
|
+
declare interface MutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> extends OmitKeyof<MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>, '_defaulted'> {
|
|
413
|
+
}
|
|
416
414
|
export { MutationOptions }
|
|
415
|
+
export { MutationOptions as MutationOptions_alias_1 }
|
|
417
416
|
|
|
418
|
-
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: WithRequired<
|
|
417
|
+
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: WithRequired<MutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>): WithRequired<MutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>;
|
|
419
418
|
|
|
420
|
-
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: Omit<
|
|
419
|
+
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: Omit<MutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>): Omit<MutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>;
|
|
421
420
|
export { mutationOptions }
|
|
422
421
|
export { mutationOptions as mutationOptions_alias_1 }
|
|
423
422
|
|
|
@@ -434,8 +433,6 @@ export { MutationStatus }
|
|
|
434
433
|
|
|
435
434
|
export { NetworkMode }
|
|
436
435
|
|
|
437
|
-
export { NoInfer_2 as NoInfer }
|
|
438
|
-
|
|
439
436
|
export { NonUndefinedGuard }
|
|
440
437
|
|
|
441
438
|
export { noop }
|
|
@@ -494,6 +491,8 @@ GetResults<Head>
|
|
|
494
491
|
|
|
495
492
|
export { Query }
|
|
496
493
|
|
|
494
|
+
export { QueryBooleanOption }
|
|
495
|
+
|
|
497
496
|
export { QueryCache }
|
|
498
497
|
|
|
499
498
|
export { QueryCacheNotifyEvent }
|
|
@@ -567,7 +566,10 @@ export { QueryObserverResult }
|
|
|
567
566
|
|
|
568
567
|
export { QueryObserverSuccessResult }
|
|
569
568
|
|
|
569
|
+
declare interface QueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> {
|
|
570
|
+
}
|
|
570
571
|
export { QueryOptions }
|
|
572
|
+
export { QueryOptions as QueryOptions_alias_1 }
|
|
571
573
|
|
|
572
574
|
declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: ReturnType<UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>>): ReturnType<UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>> & {
|
|
573
575
|
queryKey: DataTag<TQueryKey, TQueryFnData, TError>;
|
|
@@ -597,8 +599,6 @@ export { ResetOptions }
|
|
|
597
599
|
|
|
598
600
|
export { ResultOptions }
|
|
599
601
|
|
|
600
|
-
export declare function setActTimeout(fn: () => void, ms?: number): NodeJS.Timeout;
|
|
601
|
-
|
|
602
602
|
export { SetDataOptions }
|
|
603
603
|
|
|
604
604
|
export { shouldThrowError }
|
|
@@ -609,35 +609,6 @@ export { skipToken }
|
|
|
609
609
|
|
|
610
610
|
declare type SkipTokenForUseQueries = symbol;
|
|
611
611
|
|
|
612
|
-
declare interface SolidInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> extends OmitKeyof<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'queryKey' | 'suspense'> {
|
|
613
|
-
queryKey: TQueryKey;
|
|
614
|
-
/**
|
|
615
|
-
* Only applicable while rendering queries on the server with streaming.
|
|
616
|
-
* Set `deferStream` to `true` to wait for the query to resolve on the server before flushing the stream.
|
|
617
|
-
* This can be useful to avoid sending a loading state to the client before the query has resolved.
|
|
618
|
-
* Defaults to `false`.
|
|
619
|
-
*/
|
|
620
|
-
deferStream?: boolean;
|
|
621
|
-
/**
|
|
622
|
-
* @deprecated The `suspense` option has been deprecated in v5 and will be removed in the next major version.
|
|
623
|
-
* The `data` property on useInfiniteQuery is a SolidJS resource and will automatically suspend when the data is loading.
|
|
624
|
-
* Setting `suspense` to `false` will be a no-op.
|
|
625
|
-
*/
|
|
626
|
-
suspense?: boolean;
|
|
627
|
-
}
|
|
628
|
-
export { SolidInfiniteQueryOptions }
|
|
629
|
-
export { SolidInfiniteQueryOptions as SolidInfiniteQueryOptions_alias_1 }
|
|
630
|
-
|
|
631
|
-
declare interface SolidMutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> extends OmitKeyof<MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>, '_defaulted'> {
|
|
632
|
-
}
|
|
633
|
-
export { SolidMutationOptions }
|
|
634
|
-
export { SolidMutationOptions as SolidMutationOptions_alias_1 }
|
|
635
|
-
|
|
636
|
-
declare interface SolidQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> {
|
|
637
|
-
}
|
|
638
|
-
export { SolidQueryOptions }
|
|
639
|
-
export { SolidQueryOptions as SolidQueryOptions_alias_1 }
|
|
640
|
-
|
|
641
612
|
export { StaleTime }
|
|
642
613
|
|
|
643
614
|
export { StaleTimeFunction }
|
|
@@ -650,13 +621,13 @@ export { timeoutManager }
|
|
|
650
621
|
|
|
651
622
|
export { TimeoutProvider }
|
|
652
623
|
|
|
653
|
-
declare type UndefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<
|
|
624
|
+
declare type UndefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<InfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
|
654
625
|
initialData?: undefined;
|
|
655
626
|
}>;
|
|
656
627
|
export { UndefinedInitialDataInfiniteOptions }
|
|
657
628
|
export { UndefinedInitialDataInfiniteOptions as UndefinedInitialDataInfiniteOptions_alias_1 }
|
|
658
629
|
|
|
659
|
-
declare type UndefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<
|
|
630
|
+
declare type UndefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<QueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
660
631
|
initialData?: undefined;
|
|
661
632
|
}>;
|
|
662
633
|
export { UndefinedInitialDataOptions }
|
|
@@ -709,7 +680,7 @@ declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = I
|
|
|
709
680
|
export { useInfiniteQuery }
|
|
710
681
|
export { useInfiniteQuery as useInfiniteQuery_alias_1 }
|
|
711
682
|
|
|
712
|
-
declare type UseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<
|
|
683
|
+
declare type UseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<InfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>>;
|
|
713
684
|
export { UseInfiniteQueryOptions as CreateInfiniteQueryOptions }
|
|
714
685
|
export { UseInfiniteQueryOptions }
|
|
715
686
|
export { UseInfiniteQueryOptions as UseInfiniteQueryOptions_alias_1 }
|
|
@@ -747,7 +718,7 @@ declare function useMutation<TData = unknown, TError = DefaultError, TVariables
|
|
|
747
718
|
export { useMutation }
|
|
748
719
|
export { useMutation as useMutation_alias_1 }
|
|
749
720
|
|
|
750
|
-
declare type UseMutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> = Accessor<
|
|
721
|
+
declare type UseMutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> = Accessor<MutationOptions<TData, TError, TVariables, TOnMutateResult>>;
|
|
751
722
|
export { UseMutationOptions as CreateMutationOptions }
|
|
752
723
|
export { UseMutationOptions }
|
|
753
724
|
export { UseMutationOptions as UseMutationOptions_alias_1 }
|
|
@@ -781,12 +752,12 @@ declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
|
|
|
781
752
|
export { useQueryClient }
|
|
782
753
|
export { useQueryClient as useQueryClient_alias_1 }
|
|
783
754
|
|
|
784
|
-
declare type UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<
|
|
755
|
+
declare type UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<QueryOptions<TQueryFnData, TError, TData, TQueryKey>>;
|
|
785
756
|
export { UseQueryOptions as CreateQueryOptions }
|
|
786
757
|
export { UseQueryOptions }
|
|
787
758
|
export { UseQueryOptions as UseQueryOptions_alias_1 }
|
|
788
759
|
|
|
789
|
-
declare type UseQueryOptionsForUseQueries<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = OmitKeyof<
|
|
760
|
+
declare type UseQueryOptionsForUseQueries<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = OmitKeyof<QueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'placeholderData' | 'suspense'> & {
|
|
790
761
|
placeholderData?: TQueryFnData | QueriesPlaceholderDataFunction<TQueryFnData>;
|
|
791
762
|
/**
|
|
792
763
|
* @deprecated The `suspense` option has been deprecated in v5 and will be removed in the next major version.
|
|
@@ -19,7 +19,6 @@ import { dehydrate } from '@tanstack/query-core';
|
|
|
19
19
|
import { DehydratedState } from '@tanstack/query-core';
|
|
20
20
|
import { DehydrateOptions } from '@tanstack/query-core';
|
|
21
21
|
import { DistributiveOmit } from '@tanstack/query-core';
|
|
22
|
-
import { Enabled } from '@tanstack/query-core';
|
|
23
22
|
import { EnsureInfiniteQueryDataOptions } from '@tanstack/query-core';
|
|
24
23
|
import { EnsureQueryDataOptions } from '@tanstack/query-core';
|
|
25
24
|
import { environmentManager } from '@tanstack/query-core';
|
|
@@ -55,12 +54,11 @@ import { InvalidateOptions } from '@tanstack/query-core';
|
|
|
55
54
|
import { InvalidateQueryFilters } from '@tanstack/query-core';
|
|
56
55
|
import { isCancelledError } from '@tanstack/query-core';
|
|
57
56
|
import { isServer } from '@tanstack/query-core';
|
|
58
|
-
import { JSX } from '
|
|
57
|
+
import type { JSX } from '@solidjs/web';
|
|
59
58
|
import { keepPreviousData } from '@tanstack/query-core';
|
|
60
59
|
import { ManagedTimerId } from '@tanstack/query-core';
|
|
61
60
|
import { matchMutation } from '@tanstack/query-core';
|
|
62
61
|
import { matchQuery } from '@tanstack/query-core';
|
|
63
|
-
import type { MockInstance } from 'vitest';
|
|
64
62
|
import { MutateFunction } from '@tanstack/query-core';
|
|
65
63
|
import { MutateOptions } from '@tanstack/query-core';
|
|
66
64
|
import { Mutation } from '@tanstack/query-core';
|
|
@@ -79,12 +77,10 @@ import { MutationObserverLoadingResult } from '@tanstack/query-core';
|
|
|
79
77
|
import { MutationObserverOptions } from '@tanstack/query-core';
|
|
80
78
|
import { MutationObserverResult } from '@tanstack/query-core';
|
|
81
79
|
import { MutationObserverSuccessResult } from '@tanstack/query-core';
|
|
82
|
-
import { MutationOptions } from '@tanstack/query-core';
|
|
83
80
|
import { MutationScope } from '@tanstack/query-core';
|
|
84
81
|
import { MutationState } from '@tanstack/query-core';
|
|
85
82
|
import { MutationStatus } from '@tanstack/query-core';
|
|
86
83
|
import { NetworkMode } from '@tanstack/query-core';
|
|
87
|
-
import { NoInfer as NoInfer_2 } from '@tanstack/query-core';
|
|
88
84
|
import { NonUndefinedGuard } from '@tanstack/query-core';
|
|
89
85
|
import { noop } from '@tanstack/query-core';
|
|
90
86
|
import { NotifyEvent } from '@tanstack/query-core';
|
|
@@ -93,15 +89,14 @@ import { notifyManager } from '@tanstack/query-core';
|
|
|
93
89
|
import { NotifyOnChangeProps } from '@tanstack/query-core';
|
|
94
90
|
import { OmitKeyof } from '@tanstack/query-core';
|
|
95
91
|
import { onlineManager } from '@tanstack/query-core';
|
|
96
|
-
import { Options } from 'tsup';
|
|
97
92
|
import { Override } from '@tanstack/query-core';
|
|
98
|
-
import type { ParentProps } from 'solid-js';
|
|
99
93
|
import { partialMatchKey } from '@tanstack/query-core';
|
|
100
94
|
import { PlaceholderDataFunction } from '@tanstack/query-core';
|
|
101
95
|
import { QueriesObserver } from '@tanstack/query-core';
|
|
102
96
|
import { QueriesObserverOptions } from '@tanstack/query-core';
|
|
103
97
|
import { QueriesPlaceholderDataFunction } from '@tanstack/query-core';
|
|
104
98
|
import { Query } from '@tanstack/query-core';
|
|
99
|
+
import { QueryBooleanOption } from '@tanstack/query-core';
|
|
105
100
|
import { QueryCache } from '@tanstack/query-core';
|
|
106
101
|
import { QueryCacheNotifyEvent } from '@tanstack/query-core';
|
|
107
102
|
import { QueryClient as QueryClient_2 } from '@tanstack/query-core';
|
|
@@ -122,7 +117,6 @@ import { QueryObserverPlaceholderResult } from '@tanstack/query-core';
|
|
|
122
117
|
import { QueryObserverRefetchErrorResult } from '@tanstack/query-core';
|
|
123
118
|
import { QueryObserverResult } from '@tanstack/query-core';
|
|
124
119
|
import { QueryObserverSuccessResult } from '@tanstack/query-core';
|
|
125
|
-
import { QueryOptions } from '@tanstack/query-core';
|
|
126
120
|
import { QueryPersister } from '@tanstack/query-core';
|
|
127
121
|
import { QueryState } from '@tanstack/query-core';
|
|
128
122
|
import { QueryStatus } from '@tanstack/query-core';
|
|
@@ -145,15 +139,10 @@ import { TimeoutProvider } from '@tanstack/query-core';
|
|
|
145
139
|
import { UnsetMarker } from '@tanstack/query-core';
|
|
146
140
|
import { unsetMarker } from '@tanstack/query-core';
|
|
147
141
|
import { Updater } from '@tanstack/query-core';
|
|
148
|
-
import { UserConfig } from 'vite';
|
|
149
142
|
import { WithRequired } from '@tanstack/query-core';
|
|
150
143
|
|
|
151
144
|
export { AnyDataTag }
|
|
152
145
|
|
|
153
|
-
export declare function Blink(props: {
|
|
154
|
-
duration: number;
|
|
155
|
-
} & ParentProps): JSX;
|
|
156
|
-
|
|
157
146
|
export { CancelledError }
|
|
158
147
|
|
|
159
148
|
export { CancelOptions }
|
|
@@ -172,14 +161,6 @@ export { dataTagErrorSymbol }
|
|
|
172
161
|
|
|
173
162
|
export { dataTagSymbol }
|
|
174
163
|
|
|
175
|
-
export declare const default_alias: any[];
|
|
176
|
-
|
|
177
|
-
export declare const default_alias_1: any[];
|
|
178
|
-
|
|
179
|
-
export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
180
|
-
|
|
181
|
-
export declare const default_alias_3: UserConfig;
|
|
182
|
-
|
|
183
164
|
export { DefaultedInfiniteQueryObserverOptions }
|
|
184
165
|
|
|
185
166
|
export { DefaultedQueryObserverOptions }
|
|
@@ -200,13 +181,13 @@ export { defaultShouldDehydrateQuery }
|
|
|
200
181
|
|
|
201
182
|
export { DefinedInfiniteQueryObserverResult }
|
|
202
183
|
|
|
203
|
-
declare type DefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<
|
|
184
|
+
declare type DefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<InfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
|
204
185
|
initialData: NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>> | (() => NonUndefinedGuard<InfiniteData<TQueryFnData, TPageParam>>);
|
|
205
186
|
}>;
|
|
206
187
|
export { DefinedInitialDataInfiniteOptions }
|
|
207
188
|
export { DefinedInitialDataInfiniteOptions as DefinedInitialDataInfiniteOptions_alias_1 }
|
|
208
189
|
|
|
209
|
-
declare type DefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<
|
|
190
|
+
declare type DefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<QueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
210
191
|
initialData: TQueryFnData | (() => TQueryFnData);
|
|
211
192
|
}>;
|
|
212
193
|
export { DefinedInitialDataOptions }
|
|
@@ -237,8 +218,6 @@ export { DehydrateOptions }
|
|
|
237
218
|
|
|
238
219
|
export { DistributiveOmit }
|
|
239
220
|
|
|
240
|
-
export { Enabled }
|
|
241
|
-
|
|
242
221
|
export { EnsureInfiniteQueryDataOptions }
|
|
243
222
|
|
|
244
223
|
export { EnsureQueryDataOptions }
|
|
@@ -337,6 +316,25 @@ export { InfiniteQueryObserverResult }
|
|
|
337
316
|
|
|
338
317
|
export { InfiniteQueryObserverSuccessResult }
|
|
339
318
|
|
|
319
|
+
declare interface InfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> extends OmitKeyof<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'queryKey' | 'suspense'> {
|
|
320
|
+
queryKey: TQueryKey;
|
|
321
|
+
/**
|
|
322
|
+
* Only applicable while rendering queries on the server with streaming.
|
|
323
|
+
* Set `deferStream` to `true` to wait for the query to resolve on the server before flushing the stream.
|
|
324
|
+
* This can be useful to avoid sending a loading state to the client before the query has resolved.
|
|
325
|
+
* Defaults to `false`.
|
|
326
|
+
*/
|
|
327
|
+
deferStream?: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* @deprecated The `suspense` option has been deprecated in v5 and will be removed in the next major version.
|
|
330
|
+
* The `data` property on useInfiniteQuery is a SolidJS resource and will automatically suspend when the data is loading.
|
|
331
|
+
* Setting `suspense` to `false` will be a no-op.
|
|
332
|
+
*/
|
|
333
|
+
suspense?: boolean;
|
|
334
|
+
}
|
|
335
|
+
export { InfiniteQueryOptions }
|
|
336
|
+
export { InfiniteQueryOptions as InfiniteQueryOptions_alias_1 }
|
|
337
|
+
|
|
340
338
|
declare function infiniteQueryOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown>(options: ReturnType<DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>>): ReturnType<DefinedInitialDataInfiniteOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & {
|
|
341
339
|
queryKey: DataTag<TQueryKey, InfiniteData<TQueryFnData>>;
|
|
342
340
|
};
|
|
@@ -375,8 +373,6 @@ export { matchQuery }
|
|
|
375
373
|
|
|
376
374
|
declare type MAXIMUM_DEPTH = 20;
|
|
377
375
|
|
|
378
|
-
export declare function mockOnlineManagerIsOnline(value: boolean): MockInstance<() => boolean>;
|
|
379
|
-
|
|
380
376
|
export { MutateFunction }
|
|
381
377
|
|
|
382
378
|
export { MutateOptions }
|
|
@@ -413,11 +409,14 @@ export { MutationObserverResult }
|
|
|
413
409
|
|
|
414
410
|
export { MutationObserverSuccessResult }
|
|
415
411
|
|
|
412
|
+
declare interface MutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> extends OmitKeyof<MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>, '_defaulted'> {
|
|
413
|
+
}
|
|
416
414
|
export { MutationOptions }
|
|
415
|
+
export { MutationOptions as MutationOptions_alias_1 }
|
|
417
416
|
|
|
418
|
-
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: WithRequired<
|
|
417
|
+
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: WithRequired<MutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>): WithRequired<MutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>;
|
|
419
418
|
|
|
420
|
-
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: Omit<
|
|
419
|
+
declare function mutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options: Omit<MutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>): Omit<MutationOptions<TData, TError, TVariables, TOnMutateResult>, 'mutationKey'>;
|
|
421
420
|
export { mutationOptions }
|
|
422
421
|
export { mutationOptions as mutationOptions_alias_1 }
|
|
423
422
|
|
|
@@ -434,8 +433,6 @@ export { MutationStatus }
|
|
|
434
433
|
|
|
435
434
|
export { NetworkMode }
|
|
436
435
|
|
|
437
|
-
export { NoInfer_2 as NoInfer }
|
|
438
|
-
|
|
439
436
|
export { NonUndefinedGuard }
|
|
440
437
|
|
|
441
438
|
export { noop }
|
|
@@ -494,6 +491,8 @@ GetResults<Head>
|
|
|
494
491
|
|
|
495
492
|
export { Query }
|
|
496
493
|
|
|
494
|
+
export { QueryBooleanOption }
|
|
495
|
+
|
|
497
496
|
export { QueryCache }
|
|
498
497
|
|
|
499
498
|
export { QueryCacheNotifyEvent }
|
|
@@ -567,7 +566,10 @@ export { QueryObserverResult }
|
|
|
567
566
|
|
|
568
567
|
export { QueryObserverSuccessResult }
|
|
569
568
|
|
|
569
|
+
declare interface QueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> {
|
|
570
|
+
}
|
|
570
571
|
export { QueryOptions }
|
|
572
|
+
export { QueryOptions as QueryOptions_alias_1 }
|
|
571
573
|
|
|
572
574
|
declare function queryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: ReturnType<UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>>): ReturnType<UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>> & {
|
|
573
575
|
queryKey: DataTag<TQueryKey, TQueryFnData, TError>;
|
|
@@ -597,8 +599,6 @@ export { ResetOptions }
|
|
|
597
599
|
|
|
598
600
|
export { ResultOptions }
|
|
599
601
|
|
|
600
|
-
export declare function setActTimeout(fn: () => void, ms?: number): NodeJS.Timeout;
|
|
601
|
-
|
|
602
602
|
export { SetDataOptions }
|
|
603
603
|
|
|
604
604
|
export { shouldThrowError }
|
|
@@ -609,35 +609,6 @@ export { skipToken }
|
|
|
609
609
|
|
|
610
610
|
declare type SkipTokenForUseQueries = symbol;
|
|
611
611
|
|
|
612
|
-
declare interface SolidInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> extends OmitKeyof<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>, 'queryKey' | 'suspense'> {
|
|
613
|
-
queryKey: TQueryKey;
|
|
614
|
-
/**
|
|
615
|
-
* Only applicable while rendering queries on the server with streaming.
|
|
616
|
-
* Set `deferStream` to `true` to wait for the query to resolve on the server before flushing the stream.
|
|
617
|
-
* This can be useful to avoid sending a loading state to the client before the query has resolved.
|
|
618
|
-
* Defaults to `false`.
|
|
619
|
-
*/
|
|
620
|
-
deferStream?: boolean;
|
|
621
|
-
/**
|
|
622
|
-
* @deprecated The `suspense` option has been deprecated in v5 and will be removed in the next major version.
|
|
623
|
-
* The `data` property on useInfiniteQuery is a SolidJS resource and will automatically suspend when the data is loading.
|
|
624
|
-
* Setting `suspense` to `false` will be a no-op.
|
|
625
|
-
*/
|
|
626
|
-
suspense?: boolean;
|
|
627
|
-
}
|
|
628
|
-
export { SolidInfiniteQueryOptions }
|
|
629
|
-
export { SolidInfiniteQueryOptions as SolidInfiniteQueryOptions_alias_1 }
|
|
630
|
-
|
|
631
|
-
declare interface SolidMutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> extends OmitKeyof<MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>, '_defaulted'> {
|
|
632
|
-
}
|
|
633
|
-
export { SolidMutationOptions }
|
|
634
|
-
export { SolidMutationOptions as SolidMutationOptions_alias_1 }
|
|
635
|
-
|
|
636
|
-
declare interface SolidQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> extends UseBaseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey> {
|
|
637
|
-
}
|
|
638
|
-
export { SolidQueryOptions }
|
|
639
|
-
export { SolidQueryOptions as SolidQueryOptions_alias_1 }
|
|
640
|
-
|
|
641
612
|
export { StaleTime }
|
|
642
613
|
|
|
643
614
|
export { StaleTimeFunction }
|
|
@@ -650,13 +621,13 @@ export { timeoutManager }
|
|
|
650
621
|
|
|
651
622
|
export { TimeoutProvider }
|
|
652
623
|
|
|
653
|
-
declare type UndefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<
|
|
624
|
+
declare type UndefinedInitialDataInfiniteOptions<TQueryFnData, TError = DefaultError, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<InfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam> & {
|
|
654
625
|
initialData?: undefined;
|
|
655
626
|
}>;
|
|
656
627
|
export { UndefinedInitialDataInfiniteOptions }
|
|
657
628
|
export { UndefinedInitialDataInfiniteOptions as UndefinedInitialDataInfiniteOptions_alias_1 }
|
|
658
629
|
|
|
659
|
-
declare type UndefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<
|
|
630
|
+
declare type UndefinedInitialDataOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<QueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
|
|
660
631
|
initialData?: undefined;
|
|
661
632
|
}>;
|
|
662
633
|
export { UndefinedInitialDataOptions }
|
|
@@ -709,7 +680,7 @@ declare function useInfiniteQuery<TQueryFnData, TError = DefaultError, TData = I
|
|
|
709
680
|
export { useInfiniteQuery }
|
|
710
681
|
export { useInfiniteQuery as useInfiniteQuery_alias_1 }
|
|
711
682
|
|
|
712
|
-
declare type UseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<
|
|
683
|
+
declare type UseInfiniteQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, TPageParam = unknown> = Accessor<InfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>>;
|
|
713
684
|
export { UseInfiniteQueryOptions as CreateInfiniteQueryOptions }
|
|
714
685
|
export { UseInfiniteQueryOptions }
|
|
715
686
|
export { UseInfiniteQueryOptions as UseInfiniteQueryOptions_alias_1 }
|
|
@@ -747,7 +718,7 @@ declare function useMutation<TData = unknown, TError = DefaultError, TVariables
|
|
|
747
718
|
export { useMutation }
|
|
748
719
|
export { useMutation as useMutation_alias_1 }
|
|
749
720
|
|
|
750
|
-
declare type UseMutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> = Accessor<
|
|
721
|
+
declare type UseMutationOptions<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown> = Accessor<MutationOptions<TData, TError, TVariables, TOnMutateResult>>;
|
|
751
722
|
export { UseMutationOptions as CreateMutationOptions }
|
|
752
723
|
export { UseMutationOptions }
|
|
753
724
|
export { UseMutationOptions as UseMutationOptions_alias_1 }
|
|
@@ -781,12 +752,12 @@ declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
|
|
|
781
752
|
export { useQueryClient }
|
|
782
753
|
export { useQueryClient as useQueryClient_alias_1 }
|
|
783
754
|
|
|
784
|
-
declare type UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<
|
|
755
|
+
declare type UseQueryOptions<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = Accessor<QueryOptions<TQueryFnData, TError, TData, TQueryKey>>;
|
|
785
756
|
export { UseQueryOptions as CreateQueryOptions }
|
|
786
757
|
export { UseQueryOptions }
|
|
787
758
|
export { UseQueryOptions as UseQueryOptions_alias_1 }
|
|
788
759
|
|
|
789
|
-
declare type UseQueryOptionsForUseQueries<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = OmitKeyof<
|
|
760
|
+
declare type UseQueryOptionsForUseQueries<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = OmitKeyof<QueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'placeholderData' | 'suspense'> & {
|
|
790
761
|
placeholderData?: TQueryFnData | QueriesPlaceholderDataFunction<TQueryFnData>;
|
|
791
762
|
/**
|
|
792
763
|
* @deprecated The `suspense` option has been deprecated in v5 and will be removed in the next major version.
|