mirror of
https://github.com/cupcakearmy/formhero.git
synced 2025-09-05 22:00:39 +00:00
manually set form or error
This commit is contained in:
@@ -93,5 +93,5 @@ export const useForm = <T, U extends { [key in keyof T]: useFormValidatorParamet
|
||||
[opts.setter || options.setter || 'value']: form[key] as any,
|
||||
})
|
||||
|
||||
return { form, update, field, errors, isValid }
|
||||
return { form, update, field, errors, isValid, setForm, setErrors }
|
||||
}
|
||||
|
Reference in New Issue
Block a user