Set a default validator.
99% of our forms are going to use a zodValidator
is there a way to set a global default?
2 Replies
extended-salmon•16mo ago
What are you expecting from this global default? Using zod only requires adding this line in your useForm declaration once
modern-teal•16mo ago
Maybe you could export the zodValidator() somewhere as
export const validatorAdapter = zodValidator()
that would shorten the one line you'll have to add and only change one import statement at the top of your file(s)