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

Multiple <Router> on single page #327

Open
rjrs23 opened this issue Oct 13, 2024 · 1 comment
Open

Multiple <Router> on single page #327

rjrs23 opened this issue Oct 13, 2024 · 1 comment

Comments

@rjrs23
Copy link

rjrs23 commented Oct 13, 2024

Issue

  • When using multiple routers on a single page, navigation within other routers effects all routers

Steps to Replicate

  1. Create two routers within one page (say Router1 and Router2)
  2. Provide different components for each route
  3. Navigating within one router makes the content in the other route blank
  4. Demo (click on the links within the two slots to understand)

Expected Behaviour

  • Since they are separate router components navigating within one router slot shouldn't cause the other slot to change content

Note

  1. I'm not sure if my expected behaviour is correct, I understand this might not be a use-case for the library, but would be happy to submit a pr for this feature if pointed in a rough direction now how to achieve this.
@carbogninalberto
Copy link
Collaborator

Thanks for the demo I will look into it ASAP.

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

2 participants