Microfrontend with dynamic content app #9864
Unanswered
Marlight
asked this question in
Help/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.
-
Hello everyone,
We have the following problem:
We have many Vue apps that should be accessible to the various employees via a launchpad. We are currently still using an old technology with SSR. We import the respective Vue app in a certain area on the respective page. We would like to use Vue completely for this.
To do this, we are thinking of building a Launchpad Vue app that contains the basic layout, menu, user profile, search, etc. In the content area, the respective Vue apps should now be dynamically integrated without having to reload the page. The reason for this is that not every employee should see every app. It is also not desirable to just jump to the respective app.
We have already tried to implement this ourselves. However, we encountered the problem that the Vue apps can be loaded dynamically without any problems, but cannot be destroyed properly. Each time a Vue app is unloaded, the imported code (styles and scripts) is left behind. This means that more and more is imported the more different apps the user opens.
We have already tried to dynamically remove the script and style tags after unloading the Vue instance (which does not work properly).
However, the respective Vue app can then no longer be installed.
Is there anyone here in the community who has already implemented something like this?
Or has an idea for a solution?
Many thanks in advance!
Here my example:
Launchpad:
App X:
Beta Was this translation helpful? Give feedback.
All reactions