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) ?
Awesome lib 🚀
I could use
instance
fromuseTreeState
in order to get always the current selected node, filtering inflatData
and searching forselected: 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!