Prevent unnecessary store emits (#6285)
* Remove unnecessary store emits * Drastically reduce number of emitted changes
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
83f819451a
Коммит
2d22fb5652
@@ -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;
|
||||
|
||||
Ссылка в новой задаче
Block a user