Skip to content

Popup: Using React Portal instead of re-rendering the RootView #1196

Open
@manishoo

Description

@manishoo

I understand that, currently, when a modal is shown or dismissed, the changes are reflected with the updating of the RootView component using the ReactDOM.render function, which will re-render the whole tree, irrespective of any underlying shouldComponentUpdates.

In my case, I have a relatively large application and the showing and dismissing of these Popups and Modals—because it tries to render everything on each of these events—has a very poor user experience.

Now, I was wondering if it would be possible and more appropriate, for the sake of better performance, to implement this functionality on the web using React Portal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedstaleThis ticket may be old, or may no longer be valid, and will be closed if no further activity occurs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions