Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/FormStateApi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export const FormStateApi = ({
<code>validatingFields</code>
</td>
<td>
<code className={typographyStyles.typeText}>boolean</code>
<code className={typographyStyles.typeText}>object</code>
</td>
<td>{(api || API).formState.validatingFields}</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/useform/formstate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This object contains information about the entire form state. It helps you to ke
| `submitCount` | <TypeText>number</TypeText> | Number of times the form was submitted. |
| `isValid` | <TypeText>boolean</TypeText> | Set to `true` if the form doesn't have any errors.<ul><li>`setError` has no effect on `isValid` `formState`, `isValid` will always derived via the entire form validation result.</li></ul> |
| `isValidating` | <TypeText>boolean</TypeText> | Set to `true` during validation. |
| `validatingFields` | <TypeText>boolean</TypeText> | Capture fields which are getting async validation. |
| `validatingFields` | <TypeText>object</TypeText> | Capture fields which are getting async validation. |
| `errors` | <TypeText>object</TypeText> | An object with field errors. There is also an [ErrorMessage](/docs/useformstate/errormessage) component to retrieve error message easily. |
| `disabled` | <TypeText>boolean</TypeText> | Set to true if the form is disabled via the disabled prop in [useForm](/docs/useform). |
| `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])`}/> |
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/useformstate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This custom hook allows you to subscribe to each form state, and isolate the re-
| `submitCount` | <TypeText>number</TypeText> | Number of times the form was submitted. |
| `isValid` | <TypeText>boolean</TypeText> | Set to `true` if the form doesn't have any errors.<ul><li>`setError` has no effect on `isValid` `formState`, `isValid` will always derived via the entire form validation result.</li></ul> |
| `isValidating` | <TypeText>boolean</TypeText> | Set to `true` during validation. |
| `validatingFields` | <TypeText>boolean</TypeText> | Capture fields which are getting async validation. |
| `validatingFields` | <TypeText>object</TypeText> | Capture fields which are getting async validation. |
| `errors` | <TypeText>object</TypeText> | An object with field errors. There is also an [ErrorMessage](/docs/useformstate/errormessage) component to retrieve error message easily. |
| `disabled` | <TypeText>boolean</TypeText> | Set to true if the form is disabled via the disabled prop in [useForm](/docs/useform). |

Expand Down