Closed quantizor closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
formik-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 26, 2023 6:10pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit aed0b2478d78d66008555dd5cb2ec97dc7d358e5:
Sandbox | Source |
---|---|
Formik TypeScript Playground | Configuration |
I'm gonna merge the others and release and then merge this and then release a minor
Yup by default only allows for cross-field validation within the same field object. This is not that useful in most scenarios because a sufficiently-complex form will have several
yup.object()
in the schema.However, Yup offers something called
context
which can operate across the entire schema when using a $ prefix:With this change, you may now validate against any field in the entire schema, regardless of position, when using the $ prefix.