TanStackT
TanStack10mo ago
8 replies
urgent-maroon

Activate onChange validation only after submitting once?

useForm({
...
    validators: {
      onChange: ({ formApi }) =>
        formApi.state.submissionAttempts > 0 ? loginSchema : undefined,
      onSubmit: loginSchema,
...


this doesn't seem to work
Was this page helpful?