diff --git a/src/widgets/Menu/components/MenuEntry.tsx b/src/widgets/Menu/components/MenuEntry.tsx index e0b426ec5..8f0e293af 100644 --- a/src/widgets/Menu/components/MenuEntry.tsx +++ b/src/widgets/Menu/components/MenuEntry.tsx @@ -66,7 +66,6 @@ MenuEntry.defaultProps = { role: "button", }; -const MenuEntryMemo = React.memo(MenuEntry, () => true); -const LinkLabelMemo = React.memo(LinkLabel, () => true); +const LinkLabelMemo = React.memo(LinkLabel, (prev, next) => prev.isPushed === next.isPushed); -export { MenuEntryMemo as MenuEntry, LinkLabelMemo as LinkLabel }; +export { MenuEntry, LinkLabelMemo as LinkLabel }; diff --git a/src/widgets/Menu/components/MenuLink.tsx b/src/widgets/Menu/components/MenuLink.tsx index d08c37a97..3db29953a 100644 --- a/src/widgets/Menu/components/MenuLink.tsx +++ b/src/widgets/Menu/components/MenuLink.tsx @@ -10,4 +10,4 @@ const MenuLink: React.FC> = ({ href, ... return ; }; -export default React.memo(MenuLink, () => true); +export default MenuLink;