Isolate nested routes #9435
Replies: 1 comment
-
moved question to react router repo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My scenario
I have 3 Apps written in react v18 and react-router v6 with module federation
/home
path/app1
and/app1/create
paths/apps2
pathI want to be able
/apps2
and trying to refer/app1/create
I want to get not found pageFollow up questions
BrowserRouter
on host and the 2 remotes, but with react router v6 I’m getting this errorUncaught Error: You cannot render a <Router> inside another <Router>. You should never have more than one in your app.
Question - I suppose react router v6 broke this behaviour for a reason, would like to understand why
BrowserRouter
and in the remotesMemoryRouter
and update each other by sending an events and listen to themQuestion - Is there more neat solution for nested routes with isolated remotes?
Beta Was this translation helpful? Give feedback.
All reactions