Open marijuana-softwares-1 opened 2 months ago
Uh, If I understand correctly, there seems to be a misunderstanding. Zod is used to generate schemas. The $formData.origins
requires actual data, while a schema is used to validate that data. A schema itself cannot be treated as data, so it's important not to mix these two concepts together.
i am working on a simple project and i got stuck in working with zod arrays: currently i am pushing a zod string into the array then it works with the input element but the form won't submit bcz of the field and the field isn't validated.