Skip to content

Is there a way to set default staleTime for prefetchQuery() using new QueryClient({defaultOptions: {}})? #6036

Answered by TkDodo
frederikhors asked this question in Q&A
Discussion options

You must be logged in to vote

queryClient.setQueryDefaults(key, defaults) will work

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@frederikhors
Comment options

@TkDodo
Comment options

Answer selected by frederikhors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants