Question about retry function in defaultOptions
Hello everyone i have a little question,
I see that the retry function that can be passed in defaultOptions in QueryClient should return a boolean.
So my question is, if i return true does the query will retry the default number (3) or will it retry indefinitely ?
I thinks its the first option but i would like to be sure if someone has the response.
Thanks you 🙂
2 Replies
eastern-cyanOP•3y ago
Ok i think i understand now, with failureCount params you can do custom logic and return false to stop retry if failureCount is greater that the number you want. My bad.
national-gold•16mo ago
Did you ever find any documentation about the DefaultOptions? I can't find any.