WIth a microapp setup, what is the suggested way of migrating from v5 <router history={history} /> to <RouterProvider router={router} /> ? #11678
Unanswered
lundha
asked this question in
v5 to v6 Migration
Replies: 1 comment
-
We have the same problem in v7. Did you ever figure out a way to do this? |
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
-
Hi,
In my current setup I have a base app running react-router-dom v5 and multiple microapps running the same version.
I currently have the components inside a in the host app. However these apps are hosted separately and mounted in. I inject the history object from useHistory() into the in these apps.
AFAIK, when migrating to V6, this is not possible unless I use the unstable_Router, in both the host app and the remote apps, and also injects the object from createBrowserHistory().
If not, when using a separate in the micro apps, the sub routes are not rendered, since it seems that the changes to the history are not detected.
What are the recommended way going forward here? I want to use the and the data load API. Or at least do routing without using the unstable_router from.
Beta Was this translation helpful? Give feedback.
All reactions