Working with APIs that respond with 202 and a retry time #7997
Answered
by
TkDodo
nicholasgriffintn
asked this question in
Q&A
-
Hey, I have this API that responds with a 202 accepted if it hasn't processed the data yet, along with a retry time for when it should be available. What's the best way to get react query to retry at that time if the response is 202? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Sep 2, 2024
Replies: 1 comment 1 reply
-
implement
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nicholasgriffintn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
implement
refetchInterval
as a function: