TanStackT
TanStack17mo ago
5 replies
dangerous-fuchsia

Trying to disable caching (with gcTime & staleTime) does not seem to work

Im trying to disable cache for some queries, or all queries, but no luck so far.
I have tried setting gcTime: 0 and staleTime: 0.

Additionally, if i call manually refetch, it hits also cache always. Is it possible to force fetching new data somehow?
image.png
Was this page helpful?