Skip to content

Throwing an error inside a queryFn is delayed #5708

Answered by TkDodo
tbowmo asked this question in General
Discussion options

You must be logged in to vote

However, this part (throwing the error) takes several seconds to propagate out of the queryFunction.

React Query does 3 retries with exponential backoff internally. Set retry: 0 and you'll see it instantly.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tbowmo
Comment options

@TkDodo
Comment options

Answer selected by tbowmo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants