React Hook useMemo has an unnecessary dependency: 'isPortfolioViewEnabled'. Either exclude it or remove the dependency array. Outer scope values like 'isPortfolioViewEnabled' aren't valid dependencies because mutating them doesn't re-render the component