We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89acbf0 commit 494c51bCopy full SHA for 494c51b
src/content/docs/useformcontext.mdx
@@ -34,6 +34,12 @@ const methods = useFormContext() // retrieve those props
34
<Admonition type="important" title="Rules">
35
You need to wrap your form with the [`FormProvider`](/docs/formprovider)
36
component for `useFormContext` to work properly.
37
+
38
+ If you need to subscribe to form state values like `errors`, `isDirty`, or
39
+ `dirtyFields` inside a `FormProvider` tree, use
40
+ [`useFormState`](/docs/useformstate) instead of destructuring `formState`
41
+ from `useFormContext()`. `formState` is wrapped with a Proxy, so you should
42
+ read the specific state you want to subscribe to before render.
43
</Admonition>
44
45
**Example:**
0 commit comments