TanStackT
TanStack15mo ago
3 replies
sacred-rose

How to disable retries when network request is cancelled?

I have a situation where I need to imperatively call queryClient.fetchQuery() to fetch data. Sometimes the network request from this query get cancelled by Chrome where the network status is "(canceled)" (see image). Is there a way to disable retries when this happens? Thank you!
Screenshot_2024-11-06_at_4.46.22_PM.png
Was this page helpful?