Skip to content

Commit 60377ab

Browse files
committed
improve errors object doc
1 parent a941bb5 commit 60377ab

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/content/docs/useform.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,20 @@ sidebar: apiLinks
8383

8484
**Generic props:**
8585

86-
| Option | Description |
87-
| ------------------------------------------------------- | ----------------------------------------------------------------- |
88-
| [mode](#mode) | Validation strategy **before** submitting behaviour. |
89-
| [reValidateMode](#reValidateMode) | Validation strategy **after** submitting behaviour. |
90-
| [defaultValues](#defaultValues) | Default values for the form. |
91-
| [values](#values) | Reactive values to update the form values. |
92-
| [errors](#errors) | Reactive errors to update the form errors. |
93-
| [resetOptions](#resetOptions) | Option to reset form state update while updating new form values. |
94-
| [criteriaMode](#criteriaMode) | Display all validation errors or one at a time. |
95-
| [shouldFocusError](#shouldFocusError) | Enable or disable built-in focus management. |
96-
| [delayError](#delayError) | Delay error from appearing instantly. |
97-
| [shouldUseNativeValidation](#shouldUseNativeValidation) | Use browser built-in form constraint API. |
98-
| [shouldUnregister](#shouldUnregister) | Enable and disable input unregister after unmount. |
99-
| [disabled](#disabled) | Disable the entire form with all associated inputs. |
86+
| Option | Description |
87+
| ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
88+
| [mode](#mode) | Validation strategy **before** submitting behaviour. |
89+
| [reValidateMode](#reValidateMode) | Validation strategy **after** submitting behaviour. |
90+
| [defaultValues](#defaultValues) | Default values for the form, this value will be cached. |
91+
| [values](#values) | Reactive values to update the form values. |
92+
| [errors](#errors) | Server returns errors to update form. **⚠ Important:** Keep the errors object reference-stable to avoid infinite re-renders. |
93+
| [resetOptions](#resetOptions) | Option to reset form state update while updating new form values. |
94+
| [criteriaMode](#criteriaMode) | Display all validation errors or one at a time. |
95+
| [shouldFocusError](#shouldFocusError) | Enable or disable built-in focus management. |
96+
| [delayError](#delayError) | Delay error from appearing instantly. |
97+
| [shouldUseNativeValidation](#shouldUseNativeValidation) | Use browser built-in form constraint API. |
98+
| [shouldUnregister](#shouldUnregister) | Enable and disable input unregister after unmount. |
99+
| [disabled](#disabled) | Disable the entire form with all associated inputs. |
100100

101101
**Schema validation props:**
102102

0 commit comments

Comments
 (0)