Skip to content

Commit 5aae1a2

Browse files
committed
update doc on v7.56.0
1 parent 4e73acd commit 5aae1a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/content/docs/useform/formstate.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ This object contains information about the entire form state. It helps you to ke
3232
| `isValidating` | <TypeText>boolean</TypeText> | Set to `true` during validation. |
3333
| `validatingFields` | <TypeText>boolean</TypeText> | Capture fields which are getting async validation. |
3434
| `errors` | <TypeText>object</TypeText> | An object with field errors. There is also an [ErrorMessage](/docs/useformstate/errormessage) component to retrieve error message easily. |
35-
| `disabled` | <TypeText>boolean</TypeText> | Set to true if the form is disabled via the disabled prop in [useForm](/docs/useform). |
35+
| `disabled` | <TypeText>boolean</TypeText> | Set to true if the form is disabled via the disabled prop in [useForm](/docs/useform).
36+
| `isReady` | <TypeText>boolean</TypeText> | Set to true when `formState` subscription setup is ready. <CodeArea withOutCopy rawData={`const {\n setValue,\n formState: { isReady }\n} = useForm();\n\nuseEffect(() => isReady && setValue('test', 'data'), [isReady])`}/> |
3637

3738
<Admonition type="important" title="Rules">
3839

@@ -49,7 +50,7 @@ This object contains information about the entire form state. It helps you to ke
4950
`formState` is updated in batch. If you want to subscribe to `formState` via
5051
`useEffect`, make sure that you place the entire `formState` in the optional
5152
array.
52-
53+
5354
<TabGroup buttonLabels={["snippet", "example"]}>
5455

5556
```javascript

0 commit comments

Comments
 (0)