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
Description
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):
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
Labels
No labels