TanStackT
TanStack2y ago
12 replies
dry-scarlet

Are errors cached in react-query?

Say i have a query in my component.
and for some reason it returns an error.

i see that if i travel back to that component, a request is not remade, even though my
staleTime
is set to 0.

does that make sense? i thought that errors aren't saved into cache, and hence the query would be refetched?
Was this page helpful?