You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there
So, we have shared object with a few flags. My question is about eager and singleton
I have a host application that works as a container for other apps, and i share the host application dependencies
What exactly happen? I don't understand.
By trial I found out that if i set eager: true on both side, shell and app1, the google lighthouse shows the best results, but i don't understand why?
When i should use eager? When singleton? In which side, shell or federated module?
I have read the documentation, but it is written there as if everything is clear, but it is not.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there
So, we have shared object with a few flags. My question is about eager and singleton
I have a host application that works as a container for other apps, and i share the host application dependencies
Imagine we have four deeps in shell: react: 17.0, react-dom:17.0, mobx: 6 and react-router-dom: 5
Also i have a federated app that used the same dependencies, and also shared them with mf
This app use shell as remote
So now both apps shared four equal dependencies.
Then i run the shell, and inside the shel load dynamic module app1
What exactly happen? I don't understand.
By trial I found out that if i set eager: true on both side, shell and app1, the google lighthouse shows the best results, but i don't understand why?
When i should use eager? When singleton? In which side, shell or federated module?
I have read the documentation, but it is written there as if everything is clear, but it is not.
Can anybody explain this mechanism?
Beta Was this translation helpful? Give feedback.
All reactions