Form submission must include a serialized form state:
<Form method={method}>
<input type="hidden" name="formState" value={JSON.stringify(formState)} />
<input type="hidden" name="metadata" value={JSON.stringify(metadata)} />
<input type="hidden" name="tz" value={timezone} />
</Form>
React Router route
actionhandler used to submit form data to a backend endpoint (typically a Django REST Framework API). The function processes submittedFormData, extracts the serializedformState, and constructs a payload object suitable for API submission.This action expects the form submission to include a field named
formStatecontaining a JSON serialized object representing the client-side form state.The action also reads other standard form fields such as
tz(timezone) and merges them with the parsedformState.