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.

bug: IonRouterOutlet does not handle recursive routes/paths

See original GitHub issue

Bug Report

Ionic version:

[ ] 4.x [x] 5.6.0

Current behavior:

Consider a page component that shows a user profile and a list of friends. When tapping on a friend, the app navigates to a new route to display that friend’s profile along with a list of friends using the same page component. In other words, recursive routing.

CleanShot 2021-03-16 at 04 51 21

Expected behavior:

Ionic navigation should keep showing the screen and building the url as you go deeper in the recursive path.

I’ve used this as a guide: https://reactrouter.com/web/example/recursive-paths

Steps to reproduce:

Related code:

A sample application via code sandbox https://codesandbox.io/s/ionic-recursive-route-x9r8x?file=/src/app.tsx

Other information:

Ionic info:

Versions

"@ionic/react": "5.6.0",
"@ionic/react-router": "5.6.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-router-dom": "5.2.0",

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

0reactions
ionitron-bot[bot]commented, Apr 17, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-router-dom v6 recursive, nested routing - Stack Overflow
@DrewReese I added my old mapping but it is not enough to handle because tree is getting bigger and it is not recursive....
Read more >
Solved: What is the recursive routing - Cisco Community
recursive routing occurs when a route either static route or dynamically learned has a next-hop that is not directly connected to the local...
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