File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,12 @@ const methods = useFormContext() // retrieve those props
3535 You need to wrap your form with the [ ` FormProvider ` ] ( /docs/formprovider )
3636 component for ` useFormContext ` to work properly.
3737
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.
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+
4344</Admonition >
4445
4546** Example:**
You can’t perform that action at this time.
0 commit comments