[v2] Inferred types from schema and server side error handling #2351
donaldpipowitch
started this conversation in
v2 Ideas and Discussions
Replies: 1 comment 3 replies
|
If your validator is
Then you can access the output result from |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Inferred types from schema
I saw in the blog post that
z.inputis used for the form values, but didn't sawz.outputbeing used for validated form values in the submit handler. Is this a thing? I tried to test it, but it doesn't seem to work as I thought. It looks like the type is inferred from the defaults, not the schema? SeeonSubmitin this example:Server side error handling
There is a library called "formstand" that separates server and client errors a bit: see this explanation. We do something internally as well (currently based on formik). Is this something TanStack Form also supports? (I believe I haven't seen it in v1.)
All reactions