@@ -41,18 +41,18 @@ The interceptor will be called passing an object as a parameter with the followi
41
41
42
42
| attribute | type | description |
43
43
| -----------| --------| --------------------------------------------|
44
- | name | string | Name of the field that is about to be set |
45
- | value | any | Value of the field that is about to be set |
46
- | clearError | ClearError | [ API - clearError] ( /api/use-form-handler/clear-error ) |
47
- | clearField | ClearField | [ API - clearField] ( /api/use-form-handler/clear-field ) |
48
- | formState | FormState | [ API - formState] ( /api/use-form-handler/form-state ) |
49
- | modifiedValues | ModifiedValues | [ API - modifiedValues] ( /api/use-form-handler/modified-values ) |
50
- | resetField | ResetField | [ API - resetField] ( /api/use-form-handler/reset-field ) |
51
- | resetForm | ResetForm | [ API - resetForm] ( /api/use-form-handler/reset-form ) |
52
- | setError | SetError | [ API - setError] ( /api/use-form-handler/set-error ) |
53
- | setValue | SetValue | [ API - setValue] ( /api/use-form-handler/set-value ) |
54
- | triggerValidation | TriggerValidation | [ API - triggerValidation] ( /api/use-form-handler/trigger-validation ) |
55
- | values | Record<string,any> | [ API - values] ( /api/use-form-handler/values ) |
44
+ | name | ` string ` | Name of the field that is about to be set |
45
+ | value | ` any ` | Value of the field that is about to be set |
46
+ | clearError | [ ClearError] ( /api/use-form-handler/clear-error#type-declarations ) | [ API - clearError] ( /api/use-form-handler/clear-error ) |
47
+ | clearField | [ ClearField] ( /api/use-form-handler/clear-field#type-declarations ) | [ API - clearField] ( /api/use-form-handler/clear-field ) |
48
+ | formState | [ FormState] ( /api/use-form-handler/form-state#type-declarations ) | [ API - formState] ( /api/use-form-handler/form-state ) |
49
+ | modifiedValues | [ ModifiedValues] ( /api/use-form-handler/modified-values#type-declarations ) | [ API - modifiedValues] ( /api/use-form-handler/modified-values ) |
50
+ | resetField | [ ResetField] ( /api/use-form-handler/reset-field#type-declarations ) | [ API - resetField] ( /api/use-form-handler/reset-field ) |
51
+ | resetForm | [ ResetForm] ( /api/use-form-handler/reset-form#type-declarations ) | [ API - resetForm] ( /api/use-form-handler/reset-form ) |
52
+ | setError | [ SetError] ( /api/use-form-handler/set-error#type-declarations ) | [ API - setError] ( /api/use-form-handler/set-error ) |
53
+ | setValue | [ SetValue] ( /api/use-form-handler/set-value#type-declarations ) | [ API - setValue] ( /api/use-form-handler/set-value ) |
54
+ | triggerValidation | [ TriggerValidation] ( /api/use-form-handler/trigger-validation#type-declarations ) | [ API - triggerValidation] ( /api/use-form-handler/trigger-validation ) |
55
+ | values | ` Record<string,any> ` | [ API - values] ( /api/use-form-handler/values ) |
56
56
57
57
::: info
58
58
As you can see, the interceptor is provided with everything the handler does provide but in a separate context.
@@ -134,10 +134,10 @@ This option allows you to configure the validation mode or strategy the handler
134
134
135
135
| name | type | description |
136
136
| -----------| --------| --------------------------------------------|
137
- | onChange | string | Validation will trigger on the change event with each input, and lead to multiple re-renders. |
138
- | onBlur | string | Validation will trigger on the blur event. |
139
- | onSubmit | string | Validation will trigger on the submit event. |
140
- | always | string | Validation will trigger on change and blur events. |
137
+ | onChange | ` string ` | Validation will trigger on the change event with each input, and lead to multiple re-renders. |
138
+ | onBlur | ` string ` | Validation will trigger on the blur event. |
139
+ | onSubmit | ` string ` | Validation will trigger on the submit event. |
140
+ | always | ` string ` | Validation will trigger on change and blur events. |
141
141
142
142
::: warning
143
143
Using the ` always ` validationMode will have a more significant impact on performance.
0 commit comments