-
Notifications
You must be signed in to change notification settings - Fork 16
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
Lazyload forRoot #97
Comments
Hi @raphael22 You typically should import the module using If you really want to call If what you want to achieve is lazy-initialization of Matomo (but still use it in the whole app), take a look at how to defer initialization |
Well, I tried few settings with defer but always result in a |
Could you please provide a repro to investigate ? Or share your config ? |
Will reproduce a basic module-federation later. |
If use Matomo only in one micro-front end (child) module, when you use .forRoot/provideMatomo, what is the error you are getting? At least, share your config, otherwise it's difficult to understand the problem |
|
What do you precisely mean? Can you share your config please? So we can investigate |
repro incoming |
Here a basic reproduction |
@raphael22 Thank you for the repro, I understand the use case It was not initially designed this way, but it seems a valid use case. I will take a look and probably publish a solution soon (PR welcome if you have some time !) |
Not familiar with matomo.js but I could take a look if you have a branch to lead me a bit. |
You can fork this project then create a PR. In my mind, the required changes are to remove all |
Hello,
How a child module could initialize matomo?
I've got a module-federation architecture in which I want one of my module to use matomo.
But, as forbidden by guidelines, I can't use forRoot in my child module nor provide a root configuration.
I could inject matomo in my shell app, but that's mean my child module would be dependent on my shell deployment.
Bon weekend :)
The text was updated successfully, but these errors were encountered: