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

layout parameter for createRoutesView #9

Open
hyze2d opened this issue Aug 31, 2022 · 0 comments
Open

layout parameter for createRoutesView #9

hyze2d opened this issue Aug 31, 2022 · 0 comments
Labels
RFC Proposal requires more discussion

Comments

@hyze2d
Copy link

hyze2d commented Aug 31, 2022

Would be nice to be able to provide a layout wrapper for group of routes, passed layout will be rendered only if some route from list is opened. Layout itself should accepts children prop and render it somewhere inside itself.

  const Routes = createRoutesView({{
    layout: Layout,
    routes: [..]
  })
@sergeysova sergeysova added the RFC Proposal requires more discussion label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Proposal requires more discussion
Projects
None yet
Development

No branches or pull requests

2 participants