TanStackT
TanStack11mo ago
11 replies
primary-violet

Can't use Zod/Yup schema for form level validator?

On 0.43.2, when I try to use a Yup or Zod schema at form level, I get a type error for validators.onChange?
https://stackblitz.com/edit/vitejs-vite-bnbraktt?file=src%2Fcomponents%2FForm.tsx

What's the appropriate way to use Yup/Zod now? Dont think we need validatorAdapter anymore.
StackBlitzjuanvilladev
Next generation frontend tooling. It's fast!
Vitejs - Vite (forked) - StackBlitz
Was this page helpful?