virtualized table and dndkit #1732
Unanswered
davidcorzia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys!
I'm working on a react project where I'm using (planning on using) both tanstack-virtual and dnd-kit in my table component. I can have multiple table components active where I sometimes might want to be able to drag-n-drop rows between tables. Also, one table might not always allow dropping, only dragging, forcing the user to drop an item only in another table.
Sorting calculations or merge operations after dropping will be handled on my backend Java server.
Now to my question: should I use the "useDroppable" and "useDraggable" hooks on each row for complete control or should I use the already packaged "Sortable" concept for my project. The reason why I'm hesitant about the Sortable-concept is that I might not always be interested in sorting of data, but instead merging of data. Also sorting calculations etc will take place in the backend. And finally, as mentioned above, it might not always be allowed to drop an item in the same table where the item was grabbed.
Thanks in advance! /David
Beta Was this translation helpful? Give feedback.
All reactions