📄 Form Component support custom fetcher with FormData
and Json
<Form
action="/api"
fetcher={async (
action,
{ method, values, event, formData, formDataJson }
) => {
await fetch(action, { method, body: formData });
// or with JSON
await fetch(action, {
method,
header: { "content-type": "application/json" },
body: formDataJson,
});
}}
/>;
📄 useForm
support TTransformedValues
UseFormReturn<TFieldValues, TContext, TTransformedValues>
🩴 close #10078 to prevent stabled async validation (#10082)
🐞 fix #10064 native validation when subscribing to isValid (#10072)
📝 correct typo in field array type declaration (#10066)
thanks to @chrisbarless