-
From the docs:
Particularly about the refetching. While it's great when building no-compromise dynamic UIs, I think it's an overhead in small projects. When consuming (paid) external API, the unnecessary rerenders makes me feel like I'm one bad code away from incurring thousands of dollars of debt. For small projects, I mainly use Currently, I disable refetching by default and add a long cacheTime/staleTime.
it would be nice if there's a single parameter that would set this up, as I feel like I might be missing some other settings. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
set |
Beta Was this translation helpful? Give feedback.
set
staleTime: Infinity
in thedefaultOptions
.