hyper-tree icon indicating copy to clipboard operation
hyper-tree copied to clipboard

Question: How to get current selected tree node ?

Open nichita-pasecinic opened this issue 3 years ago • 1 comments

Awesome lib 🚀

I could use instance from useTreeState in order to get always the current selected node, filtering in flatData and searching for selected: true , but that is not optimal.

Is there any API of how to get the current selected node, I would especially need it to sync with some external store (recoil in my case) ?

Thanks!

nichita-pasecinic avatar Oct 15 '22 19:10 nichita-pasecinic

Hi @nichita-pasecinic, you can check issue

alekseymakhankov avatar Oct 18 '22 15:10 alekseymakhankov