Skip to content

Commit

Permalink
[v2]: Distinguish between high/low priority validation (#1522)
Browse files Browse the repository at this point in the history
* Distinguish between high/low priority validation

* Use scheduler, unstable_runWithPriority instead of rAF

* Update src/Formik.tsx

Co-Authored-By: Daniel K. <FredyC@users.noreply.github.com>

* Update src/Formik.tsx

Co-Authored-By: Daniel K. <FredyC@users.noreply.github.com>

* Update highPriority validation

* Use .some instead of .filter + .length check

* Fix field validation

* Remove refs from callback deps

* Simplify fieldRegistry checks
  • Loading branch information
jaredpalmer committed May 29, 2019
1 parent 2b9a25a commit 123e392
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 310 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -47,6 +47,7 @@
"lodash": "^4.17.11",
"lodash-es": "^4.17.11",
"react-fast-compare": "^2.0.1",
"scheduler": "^0.14.0",
"tiny-warning": "^1.0.2",
"tslib": "^1.9.3"
},
Expand Down

0 comments on commit 123e392

Please sign in to comment.