remix-validated-form
remix-validated-form copied to clipboard
[Feature]: Support setFieldValue on useFormContext
What is the new or updated feature that you are suggesting?
I would like to have a setFieldValue(fieldName:string)
in the useFormContext
hook.
Right now, I only have useControlField
to set a field value programmatically.
Why should this feature be included?
I'm doing an API call on the client and want to set many field values programmatically. I don't see an option to replace many field values at once.