diff --git a/src/diff/index.js b/src/diff/index.js index 40f17aea14..b72a368432 100644 --- a/src/diff/index.js +++ b/src/diff/index.js @@ -455,7 +455,7 @@ function diffElementNodes( if (i == 'children') { } else if (i == 'dangerouslySetInnerHTML') { oldHtml = value; - } else if (i !== 'key' && !(i in newProps)) { + } else if (!(i in newProps)) { if ( (i == 'value' && 'defaultValue' in newProps) || (i == 'checked' && 'defaultChecked' in newProps) @@ -479,7 +479,6 @@ function diffElementNodes( } else if (i == 'checked') { checked = value; } else if ( - i !== 'key' && (!isHydrating || typeof value == 'function') && oldProps[i] !== value ) {