Show error validating object from zod client-side
See original GitHub issueCurrently I have an object that is being validated to know if is empty or not (I’m using a combo box) the error is coming from server-side perfectly but if I use client-side I can see the error on onValidate
but is not getting the value inside author.error
on client-side for some reason 🤔
Issue Analytics
- State:
- Created 10 months ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Zod: client and server side validation - Anvil Works
This is proof positive that a well-designed and -documented schema pays for itself in spades.
Read more >Client side form validation with specific error messages? #3634
I just want to be able to use a zod schema for validation on the client, and show any errors it creates while...
Read more >Schema validation in TypeScript with Zod - LogRocket Blog
In this article, you will learn about schema design and validation in Zod and how to run it in a TypeScript codebase at...
Read more >Form validation with SvelteKit and Zod - Okupter
The invalid() function comes in very handy here to return a validation error object to the client. In the current state, we will...
Read more >Remix Form Validation with Zod - YouTube
When your Remix application starts to grow and your forms grow in complexity, it can be easier to manage validation with a schema-based ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you very much @edmundhung indeed that’s helpful!! I’m only using Headless for the Combobox, was thinking in another library but HUI was the perfect fit for it 😅 now is working 😀
React Aria’s
useSwitch
lets you render a checkbox. 😄https://react-spectrum.adobe.com/react-aria/useSwitch.html