React · Middle · Question 49 of 75

What does TanStack Query do on a query error by default on the client?

Explanation

By default retry: 3, and retryDelay grows exponentially. Mutations don't retry by default. Retries are configurable with a function, e.g. don't retry 4xx: retry: (count, err) => err.status >= 500 && count < 3.

Further reading

Problem with a question

React · Middle · question 49

Test yourself

Take the React · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz