jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.88k stars 2.79k forks source link

Breaking Change in v2 - Validation schema not passed to formik context #2337

Open kresimirlesic opened 4 years ago

kresimirlesic commented 4 years ago

🐛 Bug report

Current Behavior

image

image

When accessing validationSchema from formik context, on a Formik component that has one, it returns null.

Expected behavior

Formik context should return validation schema on a Formik component that has it.

Reproducible example

Additional context

This works as expected on formik v1.5.8

Your environment

Software Version(s)
Formik v 2.1.4
dalawwa commented 4 years ago

This PR seems to be the fix : https://github.com/jaredpalmer/formik/pull/2090

WazzaJB commented 4 years ago

Hey, if PR #2090 is acceptable would it be possible for it to be merged and a release out? Currently utilizing patch-package but would prefer to not!

Really appreciate the work that's gone into this package 🙌 If I can do anything to help or get this released I would be very happy to.