Skip to content
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

Run validations on set values and touched methods in a callback #176

Merged
merged 1 commit into from
Sep 25, 2017
Merged

Run validations on set values and touched methods in a callback #176

merged 1 commit into from
Sep 25, 2017

Conversation

jontansey
Copy link
Contributor

Where multiple set values and touched methods are called in sequence
React will batch the setState meaning validation will run on previous
state. Putting the code which executes the validations in a callback on
set state should solve the issue

Fixes #106

Where multiple set values and touched methods are called in sequence
React will batch the setState meaning validation will run on previous
state. Putting the code which executes the validations in a callback on
set state should solve the issue

Fixes #106
@jaredpalmer jaredpalmer merged commit dcdac54 into jaredpalmer:master Sep 25, 2017
@jaredpalmer
Copy link
Owner

LGTM

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

Successfully merging this pull request may close these issues.

2 participants