79624723

Date: 2025-05-16 07:55:57
Score: 1
Natty:
Report link

create a schema and validate on the bases of a key (isEdit:booelan)

feild1:Yup.number().when('isEdit',{is:true,then:Yup.number().otherconditions}

so what will happen here is it will only check this field1 when isEdit is true

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hrithik