Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.
This repository was archived by the owner on May 14, 2020. It is now read-only.

shouldExpandNode is only calculated on mount vs. update #60

Closed
@gnestor

Description

@gnestor

Example (notice how logs are only printed to the console after a nested node is unmounted and re-mounted, that is when shouldExpandNode is called):

screenshot

I'm trying to implement a filter for the data JSON tree so that users can easily navigate to leaf nodes, but shouldExpandNode is only calculated in the constructor of JSONNestedNode, so when the data in JSONTree changes, shouldExpandNode doesn't update unless a JSONNestedNode is unmounted and re-mounted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions