Skip to content

Commit ac8a2a0

Browse files
committed
Helpful comment
1 parent b826e98 commit ac8a2a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/useFieldArray.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const useFieldArray = (
3030
)
3131
}
3232
const mutators = useConstant<Mutators>(() =>
33+
// curry the field name onto all mutator calls
3334
Object.keys(formMutators).reduce((result, key) => {
3435
result[key] = (...args) => formMutators[key](name, ...args)
3536
return result

0 commit comments

Comments
 (0)