Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module loaded event #1147

Open
amellini opened this issue Sep 15, 2023 · 0 comments
Open

Module loaded event #1147

amellini opened this issue Sep 15, 2023 · 0 comments
Labels
how to Questions on how to use single-spa

Comments

@amellini
Copy link

Hi all,
I've a question about module loading flow, this is my needs:

I've a shell app with a sidebar module that will show some links used to activate\show other modules (all Angular apps).

I need to know from each module what "route" (as sidebar links) to show in a navbar module, so I was thinking to let each module to announce the list of links to be shown in the sidebar.

At first, I thought that calling dispatchEvent in bootstrapFunction could be a good choice, but this is called only if the module is mounted, so there's a better way to achieve this?

Something like after registerApplication.

Thank you.

@MilanKovacic MilanKovacic added the how to Questions on how to use single-spa label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
how to Questions on how to use single-spa
Projects
None yet
Development

No branches or pull requests

2 participants