pl-fe: memoize sidebar navigation

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-01-07 16:48:37 +01:00
parent e263302600
commit 175ee60edb

View File

@ -37,7 +37,7 @@ const messages = defineMessages({
});
/** Desktop sidebar with links to different views in the app. */
const SidebarNavigation = () => {
const SidebarNavigation = React.memo(() => {
const intl = useIntl();
const { unreadChatsCount } = useStatContext();
@ -321,6 +321,6 @@ const SidebarNavigation = () => {
)}
</Stack>
);
};
});
export { SidebarNavigation as default };