acronieA
tRPC3y ago
8 replies
acronie

Requests running multiple times after it's failing

image.png
Solution
When a useQuery query fails (the query function throws an error), TanStack Query will automatically retry the query if that query's request has not reached the max number of consecutive retries (defaults to 3) or a function is provided to determine if a retry is allowed.

You can configure retries both on a global level and an individual query ...
Query Retries | TanStack Query Docs
Was this page helpful?