Skip to content

ReactMount.nodeCache is repopulated with purged nodes that are focused at unmount #2988

Closed
@syranide

Description

@syranide

If you unmount a currently focused node, nodeCache is repopulated after being purged and unless that specific ID is revisited later, it will remain there forever. This is mostly likely due to the focus/selection restoration phase after reconciliation.

Repro: http://dev.cetrez.com/jsx/nodecache.html (nodeCache is output into the console)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions