Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [BUG] Nested Layout props children undefined #11280

Open
xXAvoraXx opened this issue Jul 5, 2024 · 1 comment
Open

🐛 [BUG] Nested Layout props children undefined #11280

xXAvoraXx opened this issue Jul 5, 2024 · 1 comment

Comments

@xXAvoraXx
Copy link

xXAvoraXx commented Jul 5, 2024

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
Copy link
Author

xXAvoraXx commented Jul 5, 2024

I Found this solution, someone merge this --> ant-design/ant-design-pro-site#642

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant