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
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
enhanceaction.Describe the proposed solution
Pass a
formDataprop to the enhance callback function.kit/packages/kit/src/runtime/client/remote-functions/form.svelte.js
Lines 100 to 104 in 19211c1
await callback({ form, data, + formData: form_data, submit: () => submit(form_data) });Alternatives considered
No response
Importance
nice to have
Additional Information
No response