Add missing optiosn to optional react query config

This commit is contained in:
jeffvli
2022-12-14 19:17:57 -08:00
parent 810a98a4b6
commit b67f224a00
+3
View File
@@ -34,6 +34,8 @@ export const queryClient = new QueryClient({
export type QueryOptions = {
cacheTime?: UseQueryOptions['cacheTime'];
enabled?: UseQueryOptions['enabled'];
keepPreviousData?: UseQueryOptions['keepPreviousData'];
meta?: UseQueryOptions['meta'];
onError?: (err: any) => void;
onSettled?: any;
onSuccess?: any;
@@ -43,5 +45,6 @@ export type QueryOptions = {
retry?: UseQueryOptions['retry'];
retryDelay?: UseQueryOptions['retryDelay'];
staleTime?: UseQueryOptions['staleTime'];
suspense?: UseQueryOptions['suspense'];
useErrorBoundary?: boolean;
};