TanStackT
TanStack3y ago
1 reply
wet-aqua

When does onError callback fire?

For react-query, when does the onError callback fire? On every single error? Or on the final error.
For example, if we use retries on a query or mutation, and it fails twice but on the third one succeeds, does onError run twice? Or only on the final settlement of the error.

Thanks!
Was this page helpful?