TanStackT
TanStack2y ago
19 replies
brilliant-lime

Zod Integration

Hey guys, is there a way of applying a zod schema "globally" to a form instead of applying the zod properties to each individual field. Something like

import { validateForm } from "./formValidator"
const form = useForm({
validatorAdapter: zodValidator(validateForm),
etc,
})

but the above obviously doesnt work
Was this page helpful?