Skip to content

Is there a way to stop my API refetch "refetchInterval" once the API is failed due to 404 or other reason #5949

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

You must be logged in to vote

refetchInterval can be a function:

refetchInterval: (data, query) => // return number | false for dynamic interval here

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JSDUNIYA
Comment options

You must be logged in to vote
0 replies
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