mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Add missing optiosn to optional react query config
This commit is contained in:
@@ -34,6 +34,8 @@ export const queryClient = new QueryClient({
|
|||||||
export type QueryOptions = {
|
export type QueryOptions = {
|
||||||
cacheTime?: UseQueryOptions['cacheTime'];
|
cacheTime?: UseQueryOptions['cacheTime'];
|
||||||
enabled?: UseQueryOptions['enabled'];
|
enabled?: UseQueryOptions['enabled'];
|
||||||
|
keepPreviousData?: UseQueryOptions['keepPreviousData'];
|
||||||
|
meta?: UseQueryOptions['meta'];
|
||||||
onError?: (err: any) => void;
|
onError?: (err: any) => void;
|
||||||
onSettled?: any;
|
onSettled?: any;
|
||||||
onSuccess?: any;
|
onSuccess?: any;
|
||||||
@@ -43,5 +45,6 @@ export type QueryOptions = {
|
|||||||
retry?: UseQueryOptions['retry'];
|
retry?: UseQueryOptions['retry'];
|
||||||
retryDelay?: UseQueryOptions['retryDelay'];
|
retryDelay?: UseQueryOptions['retryDelay'];
|
||||||
staleTime?: UseQueryOptions['staleTime'];
|
staleTime?: UseQueryOptions['staleTime'];
|
||||||
|
suspense?: UseQueryOptions['suspense'];
|
||||||
useErrorBoundary?: boolean;
|
useErrorBoundary?: boolean;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user