Fix ... for usernames on first page load

Этот коммит содержится в:
JoramWilander
2016-03-09 09:00:36 -05:00
родитель d9eb8c0c58
Коммит 1a38fbf681
4 изменённых файлов: 10 добавлений и 10 удалений

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

@@ -149,11 +149,15 @@ export default class PostsViewContainer extends React.Component {
}
}
shouldComponentUpdate(nextProps, nextState) {
if (Utils.areObjectsEqual(this.state, nextState)) {
return false;
if (!Utils.areObjectsEqual(this.state, nextState)) {
return true;
}
return true;
if (!Utils.areObjectsEqual(this.props, nextProps)) {
return true;
}
return false;
}
render() {
const postLists = this.state.postLists;