question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

child routes seem not to work

See original GitHub issue

The 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:closed
  • Created 7 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
boonepcommented, Aug 8, 2016

Any word on this? I’ve come across the same issue with RSK. Thanks!

2reactions
vishwanatharondekarcommented, Oct 30, 2016

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found