MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / updateFieldArray

Function updateFieldArray

app/src/useFieldArrayUnregister.tsx:67–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 });
66 const [data, setData] = React.useState<FormInputs>();
67 const updateFieldArray = () => {
68 setValue('data', [...getValues().data, { name: 'test', conditional: '' }]);
69 };
70
71 renderCount++;
72

Callers

nothing calls this directly

Calls 2

setValueFunction · 0.85
getValuesFunction · 0.85

Tested by

no test coverage detected