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
- Optional async function that takes values of `TData` and a formApi that is a generic of `FormApi<TData>` return a `ValidationError` or a `Promise<ValidationError`
41
+
- Optional async function that fires when the component mounts
42
42
-```tsx
43
43
onMountAsyncDebounceMs?:number
44
44
```
@@ -47,12 +47,12 @@ An object representing the options for a form.
- Optional onChange async function that takes values of `TData` and a formApi that is a generic of `FormApi<TData>` return a `ValidationError` or a `Promise<ValidationError`
55
+
- Optional onChange asynchronous counterpart to onChange. Useful for more complex validation logic that might involve server requests.
56
56
57
57
-```tsx
58
58
onChangeAsyncDebounceMs?:number
@@ -62,12 +62,12 @@ An object representing the options for a form.
- Optional onBlur async function that takes values of `TData` and a formApi that is a generic of `FormApi<TData>` return a `ValidationError` or a promise of `Promise<ValidationError>`
70
+
- Optional onBlur asynchronous validation method for when a field loses focus return a `ValidationError` or a promise of `Promise<ValidationError>`
71
71
72
72
-```tsx
73
73
onBlurAsyncDebounceMs?:number
@@ -77,12 +77,13 @@ An object representing the options for a form.
- A function to be called when the form is submitted and valid takes values of `TData` formApi of `FormApi<TData>` and returns `any` or a promise `Promise<any>`
80
+
- A function to be called when the form is submitted, what should happen once the user submits a valid form returns `any` or a promise `Promise<any>`
0 commit comments