docs: clarify useFormContext formState subscriptions#1197
docs: clarify useFormContext formState subscriptions#1197hiromieguchi802-lab wants to merge 2 commits intoreact-hook-form:masterfrom
Conversation
|
@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. |
✅ Deploy Preview for sage-cassata-31d224 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Quick follow-up: I pushed a small formatting fix for the |
bbcc80f to
9ac15f0
Compare
|
I pushed a cleanup update and rebased this branch onto the latest This also removes an unrelated change that had slipped into |
9ac15f0 to
77e1e16
Compare
Summary
formStatevalues accessed throughuseFormContext()inside aFormProvidertree do not establish subscriptions on their ownuseFormStatewhen subscribing to values likeerrors,isDirty, anddirtyFieldsFixes #1193.
Testing
src/content/docs/useformcontext.mdxuseFormContextrules section