We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b826e98 commit ac8a2a0Copy full SHA for ac8a2a0
src/useFieldArray.js
@@ -30,6 +30,7 @@ const useFieldArray = (
30
)
31
}
32
const mutators = useConstant<Mutators>(() =>
33
+ // curry the field name onto all mutator calls
34
Object.keys(formMutators).reduce((result, key) => {
35
result[key] = (...args) => formMutators[key](name, ...args)
36
return result
0 commit comments