Relative Content

Tag Archive for javascripttypescriptformsrenderingreact-hook-form

useFieldArray of react-hook-form not rendering when values are provided by api

I’m using a fieldArray to build a form using react-hook-form. This form is used for both create and update an user and i’m also using the “values” prop from react-hook-form. The field using the fieldArray api has 2 simple time inputs, and there’s a button “add” that you can click to render more time inputs (it starts empty).

useFieldArray of react-hook-form not rendering when values are provided by api

I’m using a fieldArray to build a form using react-hook-form. This form is used for both create and update an user and i’m also using the “values” prop from react-hook-form. The field using the fieldArray api has 2 simple time inputs, and there’s a button “add” that you can click to render more time inputs (it starts empty).