In your video, on this line the action takes in a `prevState` variable https://github.com/ProNextJS/forms-management-yt/blob/main/forms-mgmt-finished/src/app/formSubmit.ts#L11 This was not clarified, and the form's defaultValues actually comes from this line: https://github.com/ProNextJS/forms-management-yt/blob/main/forms-mgmt-finished/src/app/MailForm.tsx#L30 Do we actually need this field? If so, how exactly is it used?
In your video, on this line the action takes in a
prevStatevariable https://github.com/ProNextJS/forms-management-yt/blob/main/forms-mgmt-finished/src/app/formSubmit.ts#L11This was not clarified, and the form's defaultValues actually comes from this line: https://github.com/ProNextJS/forms-management-yt/blob/main/forms-mgmt-finished/src/app/MailForm.tsx#L30
Do we actually need this field? If so, how exactly is it used?