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

[Bug]: Router inside a Router unavailable #8817

Closed
fecheromero opened this issue Apr 25, 2022 · 2 comments
Closed

[Bug]: Router inside a Router unavailable #8817

fecheromero opened this issue Apr 25, 2022 · 2 comments
Labels

Comments

@fecheromero
Copy link

fecheromero commented Apr 25, 2022

What version of React Router are you using?

v6

Steps to Reproduce

Use a MemoryRouter inside a Router

Expected Behavior

You can model a structure with deep linking between some pages and memory routes (without change the URL) between some others.

Actual Behavior

Error: [You cannot render a <Router> inside another <Router>]

@timdorr
Copy link
Member

timdorr commented Apr 26, 2022

This isn't supported in v6. It causes subtle bugs around nested routes.

@timdorr timdorr closed this as completed Apr 26, 2022
@gbiryukov
Copy link

is there chance to reconsider this one? MemoryRouter inside BrowserRouter is really useful for wizard-like UI when all stages should stay on the same url like complex form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants