ant-design-pro icon indicating copy to clipboard operation
ant-design-pro copied to clipboard

🐛 [BUG] Nested Layout props children undefined

Open xXAvoraXx opened this issue 7 months ago • 1 comments

The {children} property always returns undefined even though I'm trying the same thing as written here.

https://pro.ant.design/docs/layout#nested-layout

  {
    exact: false,
    path: '/settings',
    component: './Settings/index', // my nested layout page
    routes: [
      {
        exact: true,
        name: 'profile',
        path: '/settings/profile',
        component: './Settings/sub-pages/Profile/index',
      },
      {
        exact: true,
        name: 'appearance',
        path: '/settings/appearance',
        component: './Settings/sub-pages/Appearance/index',
      },
    ],
  },

xXAvoraXx avatar Jul 05 '24 13:07 xXAvoraXx