TanStackT
TanStack11mo ago
4 replies
efficient-indigo

Remix integration

Hi, trying out the new Form library with a React Router (Remix) app. Feels really good, but I'm struggling to get errors from the server into the formfields. The example also has server validation, but the errors are returned in the global formErrorsMap instead of the errors of the fields. Anyone knows if I'm missing something or if it is not possible to return them in the fields? Made a small fork from the example using zod: https://stackblitz.com/edit/tanstack-form-5jswndpa?file=app%2Froutes%2F_index%2Froute.tsx&preset=node
StackBlitzKenneth Van den Berghe
Run official live example code for Form Remix, created by Tanstack on StackBlitz
Form Remix Example (forked) - StackBlitz
Was this page helpful?