Skip to content

How I can do filter #165

Answered by DamianOsipiuk
shoaibsharif asked this question in Q&A
Discussion options

You must be logged in to vote

I think what you want to achieve is to increase time before query becomes stale (should be refetched).
You can read about defaults here: https://vue-query.vercel.app/#/guides/important-defaults

By default all queries are considered stale the second they are retrieved. You can change that behavior and manually set staleTime globally for all queries, or per-query to the time that you would consider valid.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by shoaibsharif
Comment options

You must be logged in to vote
1 reply
@DamianOsipiuk
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
2 participants