openapi-react-query-codegen icon indicating copy to clipboard operation
openapi-react-query-codegen copied to clipboard

Support specifying options in prefetch

Open JonasPf opened this issue 1 year ago • 0 comments

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">

JonasPf avatar Oct 04 '24 10:10 JonasPf