What exactly does the staleTime parameter is for ? #1013
-
I understand that a quest is becoming stale after X amount of time, but what does it saying about that query exactly? or better yet - what is the best practice in case I want my query to refresh every N minutes ? is it done by the staleTime or the cacheTime? thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
denisborovikov
Sep 14, 2020
Replies: 1 comment 2 replies
-
Here are the answers what are stale/cache times for https://react-query.tanstack.com/docs/guides/caching Here's an example how to implement auto refetching/polling https://react-query.tanstack.com/docs/examples/auto-refetching |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Ephem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are the answers what are stale/cache times for https://react-query.tanstack.com/docs/guides/caching
Here's an example how to implement auto refetching/polling https://react-query.tanstack.com/docs/examples/auto-refetching