-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update resolver examples to use inference. Improve highlighting. #1155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update resolver examples to use inference. Improve highlighting. #1155
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for sage-cassata-31d224 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested to ensure this works 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that the inline onSubmit
is 100% inferred (no z.infer<>
calls) but I can change this back if you prefer an independently defined onSubmit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to gently point people towards z.output
and z.input
. z.infer
is equivalent to z.output
but I think it's better to be explicit, especially for RHF where the distinction matters quite a lot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks collin!
8cc05b4
into
react-hook-form:master
Uh oh!
There was an error while loading. Please reload this page.
lang=tsx
to slightly improve syntax highlightingBefore:
Screenshot 2025年06月09日 at 12 37 51
After:
Screenshot 2025年06月09日 at 12 37 40