openapi-react-query-codegen
openapi-react-query-codegen copied to clipboard
Support specifying options in prefetch
Is your feature request related to a problem? Please describe.
I want to set staleTime on prefetches.
Describe the solution you'd like
Similar to useQuery, prefetch should be able to receive an options object with the following type:
options?: Omit<UseQueryOptions<TData, TError>, "queryKey" | "queryFn">