You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/useform/formstate.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,10 @@ This object contains information about the entire form state. It helps you to ke
30
30
|`submitCount`| <TypeText>number</TypeText> | Number of times the form was submitted. |
31
31
|`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> |
32
32
|`isValidating`| <TypeText>boolean</TypeText> | Set to `true` during validation. |
33
-
|`validatingFields`| <TypeText>boolean</TypeText> | Capture fields which are getting async validation. |
33
+
|`validatingFields`| <TypeText>object</TypeText> | Capture fields which are getting async validation. |
34
34
|`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).
36
-
|`isReady`| <TypeText>boolean</TypeText> | Set to true when `formState` subscription setup is ready. <CodeAreawithOutCopyrawData={`const {\n setValue,\n formState: { isReady }\n} = useForm();\n\nuseEffect(() => isReady && setValue('test', 'data'), [isReady])`}/> |
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. <CodeAreawithOutCopyrawData={`const {\n setValue,\n formState: { isReady }\n} = useForm();\n\nuseEffect(() => isReady && setValue('test', 'data'), [isReady])`}/> |
Copy file name to clipboardExpand all lines: src/content/docs/useformstate.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ This custom hook allows you to subscribe to each form state, and isolate the re-
45
45
|`submitCount`| <TypeText>number</TypeText> | Number of times the form was submitted. |
46
46
|`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> |
47
47
|`isValidating`| <TypeText>boolean</TypeText> | Set to `true` during validation. |
48
-
|`validatingFields`| <TypeText>boolean</TypeText> | Capture fields which are getting async validation. |
48
+
|`validatingFields`| <TypeText>object</TypeText> | Capture fields which are getting async validation. |
49
49
|`errors`| <TypeText>object</TypeText> | An object with field errors. There is also an [ErrorMessage](/docs/useformstate/errormessage) component to retrieve error message easily. |
50
50
|`disabled`| <TypeText>boolean</TypeText> | Set to true if the form is disabled via the disabled prop in [useForm](/docs/useform). |
0 commit comments