Skip to content

docs(v8): describe primitive field array rows - #1242

Merged
bluebill1049 merged 1 commit into
react-hook-form:masterfrom
TiagoGranelli:docs/v8-primitive-field-array-rows
Oct 22, 2026
Merged

bluebill1049 merged 1 commit into
react-hook-form:masterfrom
TiagoGranelli:docs/v8-primitive-field-array-rows

Conversation

@TiagoGranelli

Copy link
Copy Markdown
Contributor

Follow-up to react-hook-form/react-hook-form#13927, which added primitive rows to useFieldArray.

The Flat Field Array section still says primitive rows aren't safe yet and to keep each row as an object. I replaced that note with how it works now: a primitive row in fields is { key, value }, and you register the input by index (register(`items.${index}`)). Object rows are unchanged.

I also added the register call to the before/after example, since that line is what changes when migrating.

@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

@TiagoGranelli is attempting to deploy a commit to the BEEKAI OSS Team on Vercel.

A member of the Team first needs to authorize it.

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sage-cassata-31d224 ready!

Name Link
🔨 Latest commit aa9f21d
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/6ada1bc296650747c732dd6e
😎 Deploy Preview https://deploy-preview-1242--sage-cassata-31d224.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bluebill1049
bluebill1049 merged commit fd3dd2b into react-hook-form:master Oct 22, 2026
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants