Replies: 1 comment 1 reply
-
All this means is that the background refetching is aggressive. The caching still work fantastically and the garbage collection keeps data around for 5 minutes before clearing it out. If we set it to infinity by default, then queries would never invalidate and refetch in the background unless they were specifically told to do so. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This seems counter-intuitive. Basically react-query is off by default.
Shouldn't the default be Infinity, and I would override when needed?
Not suggesting a change, just would like to understand the intent behind the default.
Beta Was this translation helpful? Give feedback.
All reactions