react-hook-form with nextjs server actions
I have a client component in nextjs that uses shadcn-ui,react-hook-form and zod. The client component is as follows:
How to prevent Shadcn Sheet closing when there is zod from error in next.js 14
The sheet closes upon submission even when there’s an error. I’m unsure where to place the error trap in the code to prevent the sheet from closing.