How to retry requests on failure when using useSwrMutation
?
#3017
Unanswered
cormacos-sains
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
useSwrMutation
and itstrigger
value to send a POST request. This works correctly but I want to be able to retry on error. If this fails I would like to retry the request up to 3 times? I am a bit confused on the best way of doing thatHow i set up the hook
How I call the
trigger
Any help would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions