Skip to content

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

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?

Activity

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