Merge branch 'tabs-bar-hack' into 'develop'

TabsBar: force rerender, fixes #680

Closes #680

See merge request soapbox-pub/soapbox-fe!598
error-boundary-browser-info
Alex Gleason 2021-07-10 09:56:58 +00:00
commit 61493bab42
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -162,6 +162,10 @@ const mapStateToProps = state => {
notificationCount: state.getIn(['notifications', 'unread']),
chatsCount: state.get('chats').reduce((acc, curr) => acc + Math.min(curr.get('unread', 0), 1), 0),
dashboardCount: reportsCount + approvalCount,
// HACK: We made things too efficient and now the tabs bar doesn't work right
// ¯\_(ツ)_/¯
forceRerender: Math.random(),
};
};