Skip to content

Child components are re-rendered when switching their OutPortal #18

@bduffany

Description

@bduffany

See this example: https://codesandbox.io/s/nifty-fire-ihho4?file=/src/index.tsx

When switching the OutPortal, the child component of the InPortal (i.e. the "expensive" component) appears to get re-rendered, although the component that is rendering the InPortal doesn't get re-rendered.

Is this a bug or is there a problem with that example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions