Skip to content

Pass form data to remote form function enhance callback #14477

@PatrickG

Description

@PatrickG

Describe the problem

It should be possible to mutate the form data in the remote form functions enhance callback like it is possible within the enhance action.

Describe the proposed solution

Pass a formData prop to the enhance callback function.

await callback({
form,
data,
submit: () => submit(form_data)
});
should be:

				await callback({
					form,
					data,
+					formData: form_data,
					submit: () => submit(form_data)
				});

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions