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

Validate setFieldTouched with high priority. #2882

Merged
merged 1 commit into from
Nov 10, 2020
Merged

Validate setFieldTouched with high priority. #2882

merged 1 commit into from
Nov 10, 2020

Conversation

avocadowastaken
Copy link
Contributor

Yet another follow up fix for the #2841.

In 2.2.0 validateFormWithLowPriority was immideatly called by unstable_runWithPriority
https://github.com/formium/formik/blob/7279751518089fac6a446b8a3b9c46035b65ea23/packages/formik/src/Formik.tsx#L329-L332

But 2.2.1 it was delayed, so when we validate values only on blur, users could see the error for few milliseconds.

Here is the repro #2841 (comment)

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2020

🦋 Changeset detected

Latest commit: b4ea037

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
formik Patch
formik-native Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 10, 2020

@umidbekkarimov is attempting to deploy a commit to the Formium Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Nov 10, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/formium/formik/ba9vokmkd
✅ Preview: https://formik-git-validate-on-blur.formium.vercel.app

@kodiakhq kodiakhq bot merged commit 199e77a into jaredpalmer:master Nov 10, 2020
@github-actions github-actions bot mentioned this pull request Nov 10, 2020
@avocadowastaken avocadowastaken deleted the validate-on-blur branch November 10, 2020 16:42
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