Skip to content

Promise rejections and error thrown are shown in failureReason property instead of error property #6271

Answered by TkDodo
dnyaneshwar2023 asked this question in Q&A
Discussion options

You must be logged in to vote

react-query does 3 retries per default. failureCount increases to 3 with the underlying failureReason before the query actually goes into error state. if you want instant error state, set retry: false

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dnyaneshwar2023
Comment options

@TkDodo
Comment options

@dnyaneshwar2023
Comment options

@TkDodo
Comment options

@dnyaneshwar2023
Comment options

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