Consider renaming cacheTime #1217
-
I see some confusion about cacheTime / staleTime. People tend to mix up the two, thinking that cacheTime is the time they need to tweak so that react-query will re-fetch the query (or set it to Infinity to try to avoid refetches). I know the docs already mention what it’s for:
But maybe something like Thoughts @tannerlinsley @boschni ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I think they both technically describe exactly what they do, and I like that. A little bit of general education and clarification of a term also never hurts. I’d like to keep them. |
Beta Was this translation helpful? Give feedback.
-
I think it's a great idea to rename cacheTime to something else, but I am not that fund of the proposed |
Beta Was this translation helpful? Give feedback.
I think they both technically describe exactly what they do, and I like that. A little bit of general education and clarification of a term also never hurts. I’d like to keep them.