Hi, I'm developer from Taiwan but now living in Toronto. I always like simple things. My hobby is to make knowledge very simple and easy to understand.
Once the microfrontend is loaded throught the global Shell router, it uses its own internal router if it has one.
So a good practice would be to keep the Global Shell router just load the micr-frontends and then, each micro-frontends having its own dedicated standalone router.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How does the router work in this case?
This is a good question. I was affraid that the article would be too long if I deep dived into routing, state, refs etc...
I'll answer here then.
In the Shell, you can use a vue or react router (what you prefer) to route to any kind of component. For example :
Once the microfrontend is loaded throught the global Shell router, it uses its own internal router if it has one.
So a good practice would be to keep the Global Shell router just load the micr-frontends and then, each micro-frontends having its own dedicated standalone router.