- Change control field from optional to required in useWatchParamsOfInputs type
- Add
dirtyFieldsfield toformState - Add
valueAsNumberfield to the option argument ofregister - Add new methods to useFormReturn:
clearErrors,resetField,setError,setFocus,trigger,unregister - Expand validation options in
register:maxLength,minLength,max,min,pattern - Add
useFormContexthook andFormProvidermodule
- Add
useWatchhook - Updated Controller component type definition in react-hook-form: made name parameter required and rules parameter optional
- Add
getValuestouseFormhook - Change type
*withIdwith optional fields
- Remove
-bs-super-errorsflag for the compatibility with ReScript v12
- Support ReScript v12
- Change type signature of append in useFieldArray hook
- Updated from
t => unittodefaultValuesOfT => unit - This change provides better type flexibility when appending new items to the array
- Updated from
- Enhance defaultValuesOf type definition for array types
- For array types (e.g.,
array<t>), the defaultValuesOf type now usesdefaultValuesOfTfor the array items instead ofarray<t> - This allows for more precise default value handling in nested array structures
- For array types (e.g.,
- Add setValueConfig
- Add more variants for watch return type and watch returns option type
- Support useForm, useFieldArray, Controller