TanStackT
TanStack11mo ago
18 replies
primary-violet

Are validators not supposed to be defined inside of formOptions?

when using the formOptions I notice type inference doesn't flow into the validators.

However if we ONLY define the default options within formOptions and we define the validators within useAppForm, the inference works.

Is the recommendation to define them there?
Screenshot_2025-03-12_at_10.17.15_PM.jpg
Screenshot_2025-03-12_at_10.17.57_PM.jpg
Was this page helpful?