-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Hooks!!! #467
Conversation
Codecov Report
@@ Coverage Diff @@
## master #467 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 10 15 +5
Lines 210 224 +14
Branches 62 57 -5
=====================================
+ Hits 210 224 +14
Continue to review full report at Codecov.
|
This pull request introduces 1 alert and fixes 1 when merging de77bb3 into 41d24d6 - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
Hooks are coming to React Final Form! final-form/react-final-form#467 This PR adds a paragraph to the readme of `react-final-form-hooks` to let people know that there's also hooks work going on in the main RFF codebase. Given that Googling "react final form hooks" will end up on this page for the forseeable future, it's useful to warn folks who're looking to use more hooks that they will soon have another option besides `react-final-form-hooks`.
* Cross-ref docs about hooks coming to RFF V5 Hooks are coming to React Final Form! final-form/react-final-form#467 This PR adds a paragraph to the readme of `react-final-form-hooks` to let people know that there's also hooks work going on in the main RFF codebase. Given that Googling "react final form hooks" will end up on this page for the forseeable future, it's useful to warn folks who're looking to use more hooks that they will soon have another option besides `react-final-form-hooks`. * Fixed typos
This pull request introduces 1 alert and fixes 1 when merging 1abd7f3 into 41d24d6 - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
This pull request introduces 1 alert and fixes 1 when merging 2f2ca8a into 41d24d6 - view on LGTM.com new alerts:
fixed alerts:
Comment posted by LGTM.com |
This pull request fixes 1 alert when merging 9a7125b into 41d24d6 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
This pull request fixes 1 alert when merging c1408c5 into 41d24d6 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
This pull request fixes 1 alert when merging 4870a83 into 41d24d6 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
This pull request fixes 1 alert when merging 0b786ab into 41d24d6 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
This pull request fixes 1 alert when merging ef289e6 into 41d24d6 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is a complete rewrite of 🏁 React Final Form (obviously much of the logic was saved), away from ES6 classes and lifecycle methods, to use only React Hooks. Believe it or not, this provides even better control of how, and in which stages of the render cycle, 🏁 React Final Form communicates with its internal 🏁 Final Form instance.
It also includes a migration of all of the tests to use 🐐 React Testing Library, which is a superior testing environment.
Late one insomniatic night, it occurred to me that all of the hooks logic that was internal to
Field
andFormSpy
could be exported for public consumption, so it was all abstracted out intouseField
anduseFormState
hooks respectively.