From 37530e29869a929aa0b44ab238aa0d6c0ec0dcf4 Mon Sep 17 00:00:00 2001 From: Aaron Pettengill Date: Fri, 26 Jul 2024 10:08:20 -0400 Subject: [PATCH] docs: update map docs --- apps/docs-v2/app/routes/_docs.reference.field-array-api.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/docs-v2/app/routes/_docs.reference.field-array-api.mdx b/apps/docs-v2/app/routes/_docs.reference.field-array-api.mdx index 211f1565..da4d5aed 100644 --- a/apps/docs-v2/app/routes/_docs.reference.field-array-api.mdx +++ b/apps/docs-v2/app/routes/_docs.reference.field-array-api.mdx @@ -14,7 +14,7 @@ The `FieldArrayApi` provides helpers for interacting with field arrays. - Maps over the items in the array and renders them. + Maps over the items in the array and return the results. Your map function will receive the following arguments: - `key`: A unique string key you can use as the `key` prop when rendering the list of items. @@ -22,6 +22,9 @@ The `FieldArrayApi` provides helpers for interacting with field arrays. - `item`: A [`FormApi`](/reference/form-api) scoped to that item in the array. - `index`: The index of the item in the array. + This is most commonly used to render the items in the array, + but you can return anything you want from the map function. +