useFormState async actions not working as expected
Unanswered
Peruvian anchoveta posted this in #help-forum
Peruvian anchovetaOP
Any React/Next wizard who can tell me why the
My guess is that it has something to do with asynchronous code and batching, but I've been scratching my head too long at this to make any more sense of it. in the form.tsx file
Thanks!
https://codesandbox.io/p/devbox/useformstate-cfk2ck
setIsSubmitting state is not working here? I know you can use the new useFormStatus hook, but it would be nice to get this information directly in a hook like this. My guess is that it has something to do with asynchronous code and batching, but I've been scratching my head too long at this to make any more sense of it. in the form.tsx file
Thanks!
https://codesandbox.io/p/devbox/useformstate-cfk2ck