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
hey, unfortunately there is no way to do that for the current version, where there has to be one root. Maybe try to do some css trick to hide the root?
You may also fork https://github.com/shunjizhan/use-tree-state and modify the data shape to accept multiple root, shouldn't be too complex, just change shape from { ...data } to [{ ...data }], so it's a superset of current shape.
...which doesn't completely delete the root folder, because I want new folders to be able to be created from it, but it does remove "tab" and some other icon.
Sorry for the format of the code but I have entered it well formatted and github shows it in 2 lines.
First of all, thanks a lot for this great job !!!
Is it possible to remove the root folder?
Or, in other words, can we define multiple root-level folders?
Thank you.
The text was updated successfully, but these errors were encountered: