What if sending email failed?
For the code below, what if
sendEmail
failed, how can i catch the error on client side?
I am using resend, and got a error for resend when sending email:
but I can not get the error on client side.1 Reply
I had a similar problem, the fix was to await for sendEmail to return response, otherwise it is a race condition.