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
@@ -93,20 +107,29 @@ An object type representing the options for a field in a form.
93
107
- An optional number to represent how long the `onBlurAsyncDebounceMs` should wait before running
94
108
- If set to a number larger than 0, will debounce the async validation event by this length of time in milliseconds
95
109
96
-
```tsx
97
-
onSubmitAsync?:number
110
+
111
+
-```tsx
112
+
onSubmit?:ValidateFn<TData, TParentData>
98
113
```
99
114
100
-
-If set to a number larger than 0, will debounce the async validation event by this length of time in milliseconds. If `validator` is passed, this may also accept a property from the respective validator (IE: `z.string().refine(async (val) => val.length > 3, { message: 'Testing 123' })` if `zodAdapter` is passed)
115
+
-An optional function, when that run when subscribing to submit event of input. If `validator` is passed, this may also accept a property from the respective validator (IE: `z.string().min(1)` if `zodAdapter` is passed)
A type representing the cause of a validation event.
121
+
- An optional function that takes a `ValidateFn` which is a generic of `TData` and `TParentData` happens async. If `validator` is passed, this may also accept a property from the respective validator (IE: `z.string().refine(async (val) => val.length > 3, { message: 'Testing 123' })` if `zodAdapter` is passed)
105
122
106
-
-```tsx
107
-
'change'|'blur'|'submit'|'mount'
123
+
```tsx
124
+
onSubmitAsyncDebounceMs?:number
108
125
```
109
126
127
+
- An optional number to represent how long the `onSubmitAsyncDebounceMs` should wait before running
128
+
- If set to a number larger than 0, will debounce the async validation event by this length of time in milliseconds
129
+
130
+
131
+
132
+
110
133
### `FieldMeta`
111
134
112
135
An object type representing the metadata of a field in a form.
@@ -138,7 +161,7 @@ An object type representing the required options for the `FieldApi` class.
138
161
139
162
- Inherits from `FieldOptions<TData, TParentData>` with the `form` property set as required.
0 commit comments