How to retry a serverAction()
call in clientAction
?
#10384
Unanswered
andychongyz
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
-
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