Skip to content

Problems from swapping components #16

Description

@joshkel

We're running into problems because we're trying to replace one with another within a single update. The new 's componentWillMount triggers before the old one's componentWillUnmount, resulting in a spurious "Only a single Gateway can be rendered at a time into a GatewayDest" warning, followed by the older gateway's componentWillUnmount removing the new gateway's children (because GatewayRegistry.removeChild doesn't care whose children it's removing).

One solution is to add or restore support for multiple children (see #15 or briteback/react-gateway).

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