-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
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.
kit/packages/kit/src/runtime/client/remote-functions/form.svelte.js
Lines 100 to 104 in 19211c1
await callback({ | |
form, | |
data, | |
submit: () => submit(form_data) | |
}); |
await callback({
form,
data,
+ formData: form_data,
submit: () => submit(form_data)
});
Alternatives considered
No response
Importance
nice to have
Additional Information
No response
andreasbhansen, irishburlybear, SamuelCharpentier, robert-wettstaedt, teemingc and 1 more
Metadata
Metadata
Assignees
Labels
No labels