You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
There are scenarios where someone might want to call the action startRenamingItem available in tree ref through the environment ref passing the itemId and treeId
Describe the solution you'd like
Expose the startRenamingItem action in environment ref
Describe alternatives you've considered
Adding ref for each tree
The text was updated successfully, but these errors were encountered:
Unfortunately, the currently renamed item and the search string are currently stored in the tree component tree, not the environment, so the environment can't currently see or influence that value for arbitrary trees.
If this is a relevant issue for several others, we could consider moving those props (or the renaming item property alone) into the viewstate of the environment, but since this would require quite a bit of refactoring and involves a complexity and small performance overhead, I would rather not implement this unless necessary.
Problem that we have with using that function from tree ref is that we dynamically generate trees and we were able to manipulate with them using other functions like expandAllItems, collapseAllItems, selectItems and they all take treeId as parameter. It is possible for us to maintain reference to all the refs of the trees we have and call it on proper ref, it would just be nicer experience to to be able to just call it on environment ref, but if you are saying that it is hard to make then I think we can live with it
Is your feature request related to a problem? Please describe.
There are scenarios where someone might want to call the action
startRenamingItem
available in tree ref through the environment ref passing theitemId
andtreeId
Describe the solution you'd like
Expose the
startRenamingItem
action in environment refDescribe alternatives you've considered
Adding ref for each tree
The text was updated successfully, but these errors were encountered: