6 Matching Annotations
- Oct 2020
-
stackoverflow.com stackoverflow.com
-
sveltesociety.dev sveltesociety.dev
-
Doesn't handle:
- blur/touched
-
- Sep 2020
-
codedaily.io codedaily.io
-
We must always return at least some validation rule. So first off if value !== undefined then we'll return our previous validation schema. If it is undefined then we'll use the yup.mixed().notRequired() which will just inform yup that nothing is required at the optionalObject level. optionalObject: yup.lazy(value => { if (value !== undefined) { return yup.object().shape({ otherData: yup.string().required(), }); } return yup.mixed().notRequired(); }),
-
-
github.com github.com
-
passing the context into validateSync()
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Yup.ref('value')
-