child routes seem not to work
See original GitHub issueThe following code in will never hit the /:cid subpath:
export default {
path: '/clients',
action: () => <Clients />,
children: [
{
path: '/:cid',
action(context) {
console.log('action /:cid');
return context.params.cid;
}
}
]
};
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Angular 6 child routes not working - Stack Overflow
I have a simple navigation for angular 6 app , I am trying to make routing and child routing work in a ...
Read more >Router tutorial: tour of heroes - Angular
In this tutorial, you build upon a basic router configuration to explore features such as child routes, route parameters, lazy load NgModules, guard...
Read more >Angular 6: Can't get the child route to load in the router outlet.
I'm trying to build the router so that it reflects the directory structure with child routers, so I have in app-routing.module.ts the following...
Read more >The Guide to Nested Routes with React Router - ui.dev
In this comprehensive, up-to-date guide, you'll learn everything you need to know about creating nested routes with React Router.
Read more >Troubleshooting Angular routing - Medium
While the documentation of Angular routing is great, it does not cover some edge cases and troubleshooting of missing imports or duplicate paths...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any word on this? I’ve come across the same issue with RSK. Thanks!
@frenzzy Above solution given works as expected. It will be great if we could get a warning that children route and parent action are available together. Easy to do this mistake for user of the router.