In my time showcasing TanStack Form, I noticed a lot of confusion around <Field>'s onChange validator comparing to onChange from the <input> HTML event.
Let's solve this by renaming:
<form.Field onChange={z.string()}/>
To:
<form.Field validators={{onChange: z.string()}}/>
This ticket should also include:
[ ] Renaming the validators to validators prefix property
[ ] Changing mount validator API to match the others (prev: #429)
In my time showcasing TanStack Form, I noticed a lot of confusion around
<Field>
'sonChange
validator comparing toonChange
from the<input>
HTML event.Let's solve this by renaming:
To:
This ticket should also include:
validators
prefix propertymount
validator API to match the others (prev: #429)onSubmit
andonSubmitAsync
toFormAPI