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

Two identical ExteranlComponents will only render one #122

Open
mathan78 opened this issue Feb 11, 2020 · 2 comments
Open

Two identical ExteranlComponents will only render one #122

mathan78 opened this issue Feb 11, 2020 · 2 comments

Comments

@mathan78
Copy link

mathan78 commented Feb 11, 2020

As the subject says, if you have two identical ExternalComponent on the same page, then, strangely, it will only render one of them. It seems like the interleave promise in v2Effect never resolves on the second component.

To reproduce, copy/duplicate the website-2/TitleComponent into Website1s App.jsx.

@mathan78
Copy link
Author

mathan78 commented Feb 11, 2020

Did some more testing. If I load the component without ExternalComponent, then I can render them twice. (I.e. only calling interleave once, not twice as ExternalComponent would.) Can we keep track of modules already loaded and not fetch them again in ExternalComponent?

@ScriptedAlchemy
Copy link
Owner

Known flaw. This will be fixed with v3 - currently 50% done and will be merged into webpack core

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