npm react-hook-form 7.44.0-rc.0
Version 7.44.0-rc.0

latest releases: 7.53.2, 7.53.1, 7.53.0...
20 months ago

📄 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

Don't miss a new react-hook-form release

NewReleases is sending notifications on new releases.