Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Apr 19, 2022
1 parent 295868b commit 13e1290
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ export const createArrayItem = (path: string, index: number, isNew = true): Arra

/**
* We create an internal field to represent the Array items. This field is not returned
* as part as the form data but is used internally to run validation on the array items
* and its value (an array of ArrayItem) is used to map to actual form fields.
* as part as the form data but is used internally to run validation on the array items.
* It is this internal field value (ArrayItem[]) that we then map to actual form fields
* (in the children func <UseArray>{({ items }) => (...)}</UseArray>)
*
* @param path The array path in the form data
* @returns The internal array field path
Expand Down

0 comments on commit 13e1290

Please sign in to comment.