-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add formik to the user test suite #20926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@DanielRosenwasser Do you have an actual TS example project for that library? I don't think the reported issue surfaces when just checking the |
I think both of the two examples will error // (1) - explicit parameter annotation
interface FormTypes { firstName: string }
let el1 = <Formik
initialValues={{ firstName: "Daniel"}}
onSubmit={(values: FormTypes) => console.log("First name", values.firstName)} />
// (2) - parameter should be inferred, ends up as {}
let el2 = <Formik
initialValues={{ firstName: "Daniel"}}
onSubmit={values => console.log("First name", values.firstName)} /> |
If the only value of adding formik is as an end-to-end equivalent to the test for a fix to #20891, then I don't think it's worth it. Are there other properties of formik as a dependency that make it useful? |
@sandersn IMHO this is more of a DX thing. On the one hand, adding tests for Apollo, Formik, etc might seem redundant. On the other hand, seems like a good idea to guarantee that the most popular libraries on GitHub are always compatible with the latest version of TypeScript (and are using the latest and greatest TS features). |
Good point. I do think that we’ll need more code than our typical |
@sandersn are the two issues (jaredpalmer/formik#283 and jaredpalmer/formik#314) fixed in master now? or we are still breaking formik? |
@weswigham can we ensure formik runs clean on master after #20995 is merged. |
This is in our |
|
It seems that #20891 affects users of Formik, a React forms library.
It'd be good to have
some extra coverage https://github.com/jaredpalmer/formik
The text was updated successfully, but these errors were encountered: