Skip to content
Discussion options

You must be logged in to vote

failureCount is the "internal" counter that tells you how often a query has failed while doing retries. For example, when if you have 3 retries configured (the default), the counter will go from 0 to 4. if it's on e.g. 2, your query will still be in loading or fetching state, but you can use this info to show a "something is taking longer than expected...` or so message to the user, if you want to.

the failureCount is also passed to the retry function so that you know how often it has failed.

because of that, when a new fetch starts for whatever reason (can be a call to refetch, can be manual invalidation, can be a background refetch on window focus or, like in your case, an interval fetc…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@TkDodo
Comment options

@Omercoav
Comment options

@TkDodo
Comment options

@Omercoav
Comment options

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