Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support specifying options in prefetch #157

Open
JonasPf opened this issue Oct 4, 2024 · 0 comments
Open

Support specifying options in prefetch #157

JonasPf opened this issue Oct 4, 2024 · 0 comments

Comments

@JonasPf
Copy link

JonasPf commented Oct 4, 2024

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">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant