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 don't understand how I can add validators that are applied to the items in a field array, and the api documentation page also doesn't have any either... it just seems to have ways to manage the array only. I'm not using Zod or Yup, but the global validators. I need to specify validation rules for specific properties for the object type in my source array. I may just not be understanding something key about useFieldArray. Anyone have an example of how to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't understand how I can add validators that are applied to the items in a field array, and the api documentation page also doesn't have any either... it just seems to have ways to manage the array only. I'm not using Zod or Yup, but the global validators. I need to specify validation rules for specific properties for the object type in my source array. I may just not be understanding something key about useFieldArray. Anyone have an example of how to do this?
Beta Was this translation helpful? Give feedback.
All reactions