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

Issue with route sharing between host and inner apps #1933

Closed
morleytatro opened this issue Apr 20, 2022 · 1 comment
Closed

Issue with route sharing between host and inner apps #1933

morleytatro opened this issue Apr 20, 2022 · 1 comment

Comments

@morleytatro
Copy link

I'm trying to set up a basic host app which shares routing with two inner apps. I've bumped into a few snags which are probably user error:

https://github.com/morleytatro/module-federation

Is there anything obviously wrong with the Webpack configs? Thanks!

@ScriptedAlchemy
Copy link
Member

hmm interesting. I see this is using react 18.

ive cloned your repo and will try to see whats going on here, cant see anything immediately wrong. im wondering if maybe you should set the container app to share these modules with eager:true, since its always the host and you basically want to force those singletons to come from the parent application.

Remotes not eager, host eager, remote loads shared module async only if needed, host provides shared modules upfront that it has

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants