skinny-azureS
Refine3y ago
11 replies
skinny-azure

Sider menu items not showing up

Hey everyone, I have a problem where useMenu does return a list of 2 items but the renderSider Method inside of my ThemedSider (it's just swizzled, nothing special) only renders one of them:

...
resources={[
  {
    name: 'dashboard',
    list: '/',
    meta: {
      label: 'Dashboard',
      icon: <DashboardOutlined />,
    },
  },
  {
    name: 'tree',
    list: '/tree',
    meta: {
      label: 'Databases Tree',
      icon: <DatabaseOutlined />,
    },
  },
...


routes:
...
<Route index element={<DashboardPage />} />
<Route path={'tree'} element={<DatabaseTree />} />
...


Console log inside of renderSider returns both items but only the Dashboard is rendered 🤷‍♂️ . Any idea?
console.png
sider-in-browser.png
Was this page helpful?