onSubmit behavior with SSR seems to be incorrect
It seems to me that:
*
onSubmit
should not be required
* isSubmitting
should be true
while the server action is executing and false
before and after that (but it is true
only during onSubmit
execution)
I now resort to using isPending
that is returned from useActionState
as it matches my expectations.0 Replies