Skip to content

docs: clarify useFormContext formState subscriptions#1197

Open
hiromieguchi802-lab wants to merge 1 commit intoreact-hook-form:masterfrom
hiromieguchi802-lab:docs/useformcontext-useformstate-note
Open

docs: clarify useFormContext formState subscriptions#1197
hiromieguchi802-lab wants to merge 1 commit intoreact-hook-form:masterfrom
hiromieguchi802-lab:docs/useformcontext-useformstate-note

Conversation

@hiromieguchi802-lab
Copy link
Contributor

Summary

  • document that formState values accessed through useFormContext() inside a FormProvider tree do not establish subscriptions on their own
  • recommend useFormState when subscribing to values like errors, isDirty, and dirtyFields

Fixes #1193.

Testing

  • reviewed the updated docs copy in src/content/docs/useformcontext.mdx
  • verified the diff is limited to the useFormContext rules section

@vercel
Copy link
Contributor

vercel bot commented Mar 24, 2026

@hiromieguchi802-lab is attempting to deploy a commit to the BEEKAI OSS Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Mar 24, 2026

Deploy Preview for sage-cassata-31d224 ready!

Name Link
🔨 Latest commit 18de84d
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/69c1fa29063f36000841e823
😎 Deploy Preview https://deploy-preview-1197--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.

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.

useFormContext docs missing warning about stale formState and should recommend useFormState for subscriptions

1 participant