You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: