Skip to content

docs: correct Controller ref note and add React Compiler caveats to the v8 guide - #1234

Merged
bluebill1049 merged 2 commits into
react-hook-form:masterfrom
TiagoGranelli:docs/v8-ref-and-compiler-caveats
Oct 19, 2026
Merged

bluebill1049 merged 2 commits into
react-hook-form:masterfrom
TiagoGranelli:docs/v8-ref-and-compiler-caveats

Conversation

@TiagoGranelli

Copy link
Copy Markdown
Contributor

A few fixes to the V8 migration guide, checked against react-complier at d654808:

  • Input Ref: field.ref is still a callback, so the field.ref.appendChild example doesn't work. RHF now stores the element instead of a proxy, and that stored ref is the one errors[name].ref, focus and native validation use.
  • React Compiler: added the getFieldState(name, formState) case for local useFormState, and pointed to useWatch for rendering values from context.
  • Flat Field Array: '', 0 and false rows are dropped, including from stored values after append. The note now says to keep rows as objects.

@vercel

vercel Bot commented Oct 16, 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 16, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 5b36bad
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/6ad5f108ddfce37f397f5bec
😎 Deploy Preview https://deploy-preview-1234--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 a198b52 into react-hook-form:master Oct 19, 2026
7 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