shunjizhan / react-folder-tree

A versatile react treeview library that supports custom icons and event handlers
https://www.npmjs.com/package/react-folder-tree
119 stars 45 forks source link

Update tree data externally? #55

Open jwmiii opened 2 years ago

jwmiii commented 2 years ago

What is the best way to update the data held in the tree "externally"? I have my data in state and when I setState on that my tree just goes blank. It works for the initial state. Is there a way to call the addNode and deleteNode? Thanks for any help.

shunjizhan commented 2 years ago

currently it doesn't support rewriting all data directly (only handlers are supported to update a portion of the data). It is planned to add the feature to update the data held in the tree "externally"

Sakthivelgovindan commented 11 months ago

Hi @shunjizhan Any update for this feature?

Sakthivelgovindan commented 11 months ago

Hi @jwmiii , you have any idea, how you will achieve this?