How to retry a serverAction()
call in clientAction
?
#10384
Unanswered
andychongyz
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I guess remix would need an option for Example: I wonder though if its the best place to solve client retries. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, we are facing
TypeError: LoadFailed
during the form submission on Safari or Webkit based browser. I was trying to implement a retry mechanism in theclientAction
to retry theserverAction()
call if encounter this error. But I realised that theserverAction()
will throwTypeError: Body is disturbed or locked
if I call theserverAction()
the second time. This is probably because the serverAction cached the request and try to callresonse.json()
again, how can I stop that and call theserverAction()
function more than once?Beta Was this translation helpful? Give feedback.
All reactions