-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix async/submit errors getter for nested fields #3755
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3755 +/- ##
======================================
Coverage 100% 100%
======================================
Files 70 70
Lines 1578 1578
======================================
Hits 1578 1578
Continue to review full report at Codecov.
|
Doesn't this work, too, and is better? asyncError: getIn(formState.asyncErrors, name), |
Unfortunately not.
Following code |
Published in |
It's a breaking change. Before v7.2.1 only nested error object could be used. |
This should have been released as |
…ts, since they were changed for Fields in redux-form#3755
Apologies for this accidental breaking change... it should be rolled back (unbroken). |
…Array and Fields." (#3804) * Revert "Fix for formValues not reacting to props change (#3794)" This reverts commit 701fdc0. * Revert "Fix for double INITIALIZE happening on first mount (#3797)" This reverts commit 5c13be0. * Revert "Fixes asyncErrors and submitErrors for FieldArray and Fields components, since they were changed for Fields in #3755 (#3802)" This reverts commit 4b4e994.
Reverted this change in |
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. |
asyncErrors & submitErrors are flat key-value objects:
{ 'field.a.b.c': 'error' }
, so we should escape field name in order to get data from it.