Skip to content

Dynamically Update staleTime After Query Data is Fetched #9031

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

You must be logged in to vote

staleTime can already be a function that receives the latest query, so you can build this already.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Cihatata
Comment options

Answer selected by Cihatata
Comment options

You must be logged in to vote
1 reply
@TkDodo
Comment options

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