T
TanStack3y ago
flat-fuchsia

Retry on specific response

Hello, How can one retry a query upon a specific successful response rather than an error ? Cheers
2 Replies
correct-apricot
correct-apricot3y ago
Throw an exception from inside your queryFn when you get that specific response
flat-fuchsia
flat-fuchsiaOP3y ago
Yeah that's what I've been doing. Just wondered if there's a 'cleaner' way to do it. Cheers

Did you find this page helpful?