From 447a2561f46cd3e83cb8335ac87d12073476bec5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 10 Jul 2021 04:40:16 -0500 Subject: [PATCH] TabsBar: force rerender --- app/soapbox/features/ui/components/tabs_bar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/soapbox/features/ui/components/tabs_bar.js b/app/soapbox/features/ui/components/tabs_bar.js index e11044ba7..980ece692 100644 --- a/app/soapbox/features/ui/components/tabs_bar.js +++ b/app/soapbox/features/ui/components/tabs_bar.js @@ -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(), }; };