-
-
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
V6 - Field does not rerender when its sync error changes #1024
Comments
On v6, updating a field does not rerender other fields (unlike v6). This might be what's causing your issue. Could you add some code to diagnose what's happening here? |
@ooflorent this is the first I'm seeing of this (i'm guessing you meant "unlike v5"). Do you have more info (issues, docs, etc.) I could look into? I feel like I've looked through the docs, especially the migration guide, but I'm not seeing much else on this issue |
I understand what @q42jaap means. This is a bug. It's not particularly related to arrays. If you had a validation function like: const validate = values => {
const errors = {}
if (values.newPassword !== values.confirmNewPassword) {
errors.confirmNewPassword = 'Must match!'
}
return errors
} And then you edited the @clayne11 is currently working on some changes (see #908) that will result in the sync validation errors being in the Redux store, which will make fixing this bug trivial. |
I'm seeing an issue where other Fields within a FieldArray aren't re-rendered when the field array has new elements inserted/removed. Is this related to this issue or should I make a new one? Thanks! |
New one. 😦 |
This is fixed. I will comment again when the fix is published. |
Thanks @erikras ! No pressure, but what's the eta on the new release? |
Published 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. |
I have an array editor, and a validation function.
When I make changes in 1 field, my validation function runs and based on the value of field 1, the validation for field 2 might change (it's not passwords comparison).
When I make changes to field 1, validation is updated only for that field, but when the validation function removes an error for field 2, that error is not removed in the UI.
The text was updated successfully, but these errors were encountered: