Skip to content

Dynamically Update staleTime After Query Data is Fetched #9031

Answered by TkDodo
Cihatata asked this question in Q&A

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

You must be logged in to vote
1 reply
@Cihatata

Answer selected by Cihatata

You must be logged in to vote
1 reply
@TkDodo

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