I really love your idea of this form, but I am unsure if I can achieve the following to see if I can move from react-hook-form.
[Background: I started with formik, but run into performance issues with pages with many fields. I am exploring react-hook-form, but running into this issue: I am generating the form components based on a dynamic schema in the 'render()' part -- but some custom components do not have interface to pass in ref. I am unable to useEffect to allocate the name refs by manual register, because this can't be done in the render() part! ]
I would like to know if your component can do the following:
- return the values in nested JSON format [ like RHF.getValues ( {nest:true} ); ]
- allow validators as part of field() e.g.
{
getter: xxx
setter: yyy
validator: zzzz
}
- some existing components have multi-values that can be set and returned, for example have two parts in the component where we can set the currency and value, both of which are supposed to be affect "payment_value":5000 and "payment_currency":"USD". Can this be somehow hooked into formhero?
Thank you so much for your effort so far, it has given me very good ideas!
I really love your idea of this form, but I am unsure if I can achieve the following to see if I can move from react-hook-form.
[Background: I started with formik, but run into performance issues with pages with many fields. I am exploring react-hook-form, but running into this issue: I am generating the form components based on a dynamic schema in the 'render()' part -- but some custom components do not have interface to pass in ref. I am unable to useEffect to allocate the name refs by manual register, because this can't be done in the render() part! ]
I would like to know if your component can do the following:
{
getter: xxx
setter: yyy
validator: zzzz
}
Thank you so much for your effort so far, it has given me very good ideas!