Course lesson
Add Validation With Zod and Error Handling for Next.js Server Actions
With zod and error boundaries we can provide UI feedback if form inputs do not pass validation.
- Duration
- 1 min
- Access
- Free
- Transcript
- Needs source
With zod and error boundaries we can provide UI feedback if form inputs do not pass validation.
Here I'll set up an Error Boundary inside the modal to to catch the error that Zod throws. You can check Zod documentation to make these errors more readable and user friendly.