Skip to content

Two identical ExteranlComponents will only render one #122

Open

Description

@mathan78

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.

Activity

  1. mathan78 commented on Feb 11, 2020

    @mathan78
    Author

    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?

  2. ScriptedAlchemy commented on Feb 15, 2020

    @ScriptedAlchemy
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions