wsmd/react-use-form-state

update all form fields

keeganstothert opened this issue · 2 comments

the api for providing initial form state is great. It lets us pass in the whole form state at once. I need to be able to update the entire form state in a similar manner, something like formState.setFields((oldFieldValues) => ({...oldFieldValues, ...newFieldValues}))

formState.setField isn't practical because it is a large form and I don't want to manage fields individually for this use case.

thanks!

Any update on this issue ?

Thanks in advance !

Yep, this would be useful to have for one of our use cases.