© 2026 Hedgehog Software, LLC
const schema = z.object({ name: z.string().min(2, 'Name must be at least 2 characters long'), email: z.string().email('Invalid email address').optional(), age: z.coerce.number().min(18, 'You must be at least 18 years old') }) const TanstackFormExample = () => { const form = useForm({ defaultValues: { name: '', email: '', age: 12 }, validators: { onChange: schema }, onSubmit: ({ value }) => { console.log(value) } })
onChange: schema
The types of ''~standard'.types' are incompatible between these types..
defaultValues: { name: '', email: undefined, age: 12 } as z.input<typeof schema>,
https://x.com/tannerlinsley/status/2036583173749162438?s=20
dry-scarlet · 2d ago
TanStack Start is now the fastest full stack React framework: https://x.com/tan_stack/status/2033949459651158042?s=20
dry-scarlet · 2w ago
https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet · 3w ago