Skip to content

Support specifying options in prefetch #157

Description

@JonasPf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions