I'm using Astro actions to handle form submissions. The form is built with React (tsx) using useActionState & withState . If I disable JavaScript from the browser and send the form with invalid data, the schema validates the as it should and fails with an error. I can even get the field specific error messages, but I can't get the previous state (the form field values).
This creates an UX problem, since the end-user has to fill-in the form again.
Are there any way to solve this? I.e. return the previous state from the action handler back to the React component?