bkrem / react-d3-tree

:deciduous_tree: React component to create interactive D3 tree graphs
https://bkrem.github.io/react-d3-tree
MIT License
1.06k stars 268 forks source link

Update values on nodes but keeping the tree nodes opened as they were #507

Open cafischer opened 1 month ago

cafischer commented 1 month ago

Are you reporting a bug, or opening a feature request?

Question (maybe feature request)

What is the behavior/output you expect?

I use a custom node and it has some properties that require some time to load. So I would like to show a loading symbol on the node and update that with the value once it arrives. I would like my users to be able to browse the tree and open certain nodes. When the node values update, the tree should stay open as it was and only the respective node should be re-rendered to display the new value. It would also be ok if the whole tree is re-rendered but I can state which nodes I want to have open initially.

Is that already possible? How could I do that?

What version of react-d3-tree are you using?

3.3.6