useFieldArray default keyName id
=> key
?
#6962
-
Often times I run into the issue that useFieldArray defaults to keyName='id'. This is an issue because most times the objects in the field arrays have their own id-field - especially if you're editing some existing data, rather than creating new. This is of course solved by changing the keyName in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is something we could consider in the next breaking change (major version), in fact, react 18 will have a new hook |
Beta Was this translation helpful? Give feedback.
This is something we could consider in the next breaking change (major version), in fact, react 18 will have a new hook
useId
, we can look into that later on as well.