Unable to sync host and remote Vue routers using Module Federation #2519
Unanswered
danilpon98
asked this question in
Help and Questions
Replies: 0 comments
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.
-
Reproduction
https://stackblitz.com/edit/github-vsw8ta-jmb12sfz?file=app1%2Fsrc%2Fviews%2FRemoteView.vue,app2%2Fsrc%2Fexport-app.ts
Steps to reproduce the bug
Expected behavior
The host and remote applications should stay in sync when navigating through links both in the host and inside the remote app.
Navigating within the remote app should update the URL and router state in the host, and views should update accordingly.
Actual behavior
Additional information
@module-federation/vite
and@module-federation/bridge-vue3
.WebHistory
instance, as suggested here:support multiple router instance in one page #1071 (comment)
It's important for me to keep the host and remote apps separate.
I'd appreciate any suggestions on how to properly sync or share routing between them.
Beta Was this translation helpful? Give feedback.
All reactions