Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use hooks. Fixes #4, fixes #6 #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jariz
Copy link

@jariz jariz commented Oct 18, 2019

This is a reimplementation of formik-effect with hooks.
It should be fully backwards compatible (just not with react <16.8, of course).

formik: FormikContext<Values>;
}

export const Effect = <Values>({ formik, onChange }: Props<Values>) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Named export is not going to work as it's not connected with formik.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants