Update post if shouldHighlight prop changes

Этот коммит содержится в:
JoramWilander
2015-12-03 09:22:20 -05:00
родитель 61f90860a8
Коммит 6457a18493

Просмотреть файл

@@ -95,6 +95,10 @@ export default class Post extends React.Component {
return true;
}
if (nextProps.shouldHighlight !== this.props.shouldHighlight) {
return true;
}
return false;
}
getCommentCount(props) {