Isolate nested routes #11560
Unanswered
galcohen92
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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