Prevent unnecessary store emits (#6285)

* Remove unnecessary store emits

* Drastically reduce number of emitted changes
Этот коммит содержится в:
Joram Wilander
2017-05-01 10:49:34 -04:00
коммит произвёл GitHub
родитель 83f819451a
Коммит 2d22fb5652
6 изменённых файлов: 57 добавлений и 77 удалений

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

@@ -119,7 +119,7 @@ export default class NeedsTeam extends React.Component {
window.isActive = true;
$(window).on('focus', () => {
this.props.actions.viewChannel(ChannelStore.getCurrentId());
ChannelStore.resetCounts(ChannelStore.getCurrentId());
ChannelStore.resetCounts([ChannelStore.getCurrentId()]);
ChannelStore.emitChange();
window.isActive = true;