You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing #1916 I've encountered this error in the console:
Warning: flattenChildren(...): Encountered two children with the same key, `.1:$notice-0`. Child keys must be unique; when two children share a key, only the first child will be used.
Steps to reproduce:
visit /domains/manage/:site/dns/:domain
add a new record, a success notice will be displayed (don't dismiss it)
trigger an error (I went offline using the Developer Tools and tried adding a new record)
It seems the success and error notices conflict with each other.
The code triggering this behaviour is in dns-add-new.jsx. Nothing special - just calling notices.success and notices.error with a string. Note that I've observed the same behaviour with a mix of "reduxified" and normal notices (as seen in #1916).
The text was updated successfully, but these errors were encountered:
Otherwise, if we show old and new (from redux store) notices, we'll get
conflicting keys (like notice-0), which are used by React during reder
passes. This will trigger an error in the console and, more importantly,
prevent one of the conflicting notices from showing.
This change changes the old notices' key prefix to a different one than
for the new, reduxified ones, thus preventing the conflict.
Fixes#2946
While testing #1916 I've encountered this error in the console:
Steps to reproduce:
/domains/manage/:site/dns/:domain
It seems the success and error notices conflict with each other.
The code triggering this behaviour is in
dns-add-new.jsx
. Nothing special - just callingnotices.success
andnotices.error
with a string. Note that I've observed the same behaviour with a mix of "reduxified" and normal notices (as seen in #1916).The text was updated successfully, but these errors were encountered: