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
useListData has the moveBefore and moveAfter methods, which are useful for working with drag and drop. It would be useful to have equivalents for useTreeData. This was mentioned in this PR #4444 but it was closed.
🤔 Expected Behavior?
This should work just like the moveBefore and moveAfter methods for useListData. The types would be the same:
Just a fyi, I've added this issue to our internal tracking ticket: RSP Component Milestones (view). Thanks for raising this, we'll definitely need it for our eventual implementation of Tree.
Just a heads up but we've reverted #7689 for now since we'd like the api to mirror useListData more closely after a team discussion, reopening this until that is implemented. Theoretically, you should be able to accomplish moveBefore/After with just the existing move call that exists
Provide a general summary of the feature here
useListData
has themoveBefore
andmoveAfter
methods, which are useful for working with drag and drop. It would be useful to have equivalents foruseTreeData
. This was mentioned in this PR #4444 but it was closed.🤔 Expected Behavior?
This should work just like the
moveBefore
andmoveAfter
methods foruseListData
. The types would be the same:😯 Current Behavior
These methods currently don't exist.
💁 Possible Solution
No response
🔦 Context
It is currently difficult to reorder items in tree structures, particularly when working with drag and drop. This feature would make this much easier.
💻 Examples
No response
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: