FormStore.submit()method
submit(callback?: ((value: T, ...args: A) => void) | undefined, ...args: A): boolean | Promise<boolean>
Validate the current form value and run an optional submit callback with it.
- On a validation failure the error is stored as the
reasonandfalseis returned.