Form state is inconsistent when using with server action
The following is a simplified version of what I'm currently doing, which is basically aligned with the example shown in the dic:
Yet, I noticed a few things.
1. Form states are still being updated according to the progress of
2. I don't seem to be able to overwrite the states, e.g.
May I know if anyone has further dig deep om the integration between TabStack Form and server action?
Yet, I noticed a few things.
1. Form states are still being updated according to the progress of
onSubmit, instead of the server action, e.g. isSubmitted is immediately turned to true after passing the client side validation (since the action is doing the form submition part, instead of onSubmit)2. I don't seem to be able to overwrite the states, e.g.
isSubmiting, in mergeForm. I was trying to overwrite it with the pending state from useActionState.May I know if anyone has further dig deep om the integration between TabStack Form and server action?