Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
setValue
Function · 0.85
getValues
Function · 0.85
Tested by
no test coverage detected