question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show error validating object from zod client-side

See original GitHub issue

Currently 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 🤔

CleanShot 2022-11-26 at 18 43 16

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danestvescommented, Dec 8, 2022

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 😀

1reaction
brandonpittmancommented, Dec 8, 2022

React Aria’s useSwitch lets you render a checkbox. 😄

https://react-spectrum.adobe.com/react-aria/useSwitch.html

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found