webpack-external-import
webpack-external-import copied to clipboard
Two identical ExteranlComponents will only render one
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.
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?
Known flaw. This will be fixed with v3 - currently 50% done and will be merged into webpack core