-
Notifications
You must be signed in to change notification settings - Fork 1
fix: Use updater function in setState for Formbot updates #58
Conversation
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
=========================================
- Coverage 66.89% 66.59% -0.3%
=========================================
Files 22 22
Lines 447 449 +2
Branches 92 91 -1
=========================================
Hits 299 299
- Misses 118 121 +3
+ Partials 30 29 -1
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
=========================================
- Coverage 66.89% 66.59% -0.3%
=========================================
Files 22 22
Lines 447 449 +2
Branches 92 91 -1
=========================================
Hits 299 299
- Misses 118 121 +3
+ Partials 30 29 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
=========================================
- Coverage 66.89% 66.29% -0.6%
=========================================
Files 22 22
Lines 447 451 +4
Branches 92 91 -1
=========================================
Hits 299 299
- Misses 118 123 +5
+ Partials 30 29 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
=========================================
- Coverage 66.89% 66.59% -0.3%
=========================================
Files 22 22
Lines 447 449 +2
Branches 92 91 -1
=========================================
Hits 299 299
- Misses 118 121 +3
+ Partials 30 29 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, a test would be nice if its not a huge PITA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gogogo
* v5: feat(Button): Icon support and default style updates (#51) feat(Colors): Updates colors (#60) chore(release): 4.1.6 fix(FormError): Fix crash in case context is null (#59) chore(release): 4.1.5 fix: Use updater function in setState for Formbot updates (#58) chore(release): 4.1.4 fix(validations): Fix handling of async validations as well as order of onChange notification (#57) chore(release): 4.1.3 Async Formbot Validations (#56)
Summary
Using a function as a state updater seems to fix an issue with stale state data preventing a validation function from running.