Completely disable cache for a single query?
How do I completely disable caching for one query? I have set cacheTime: 0 but this code seems to always cache its result:
2 Replies
rival-black•3y ago
You probably want a staleTime of infinity
other-emerald•3y ago
staleTime: Infinity caches forever. I'm not sure what "disabled caching" would do, how should that work? You have to put fetched data in some sort of state, otherwise, you can't render it ...