solid-dnd icon indicating copy to clipboard operation
solid-dnd copied to clipboard

data is not updated which is passed to createDroppable

Open Swappea opened this issue 1 year ago • 0 comments

So I am using a custom implementation of using both createDraggable and createDroppable and the refs are combined. I have a nested JSON data which is looped over and according the groups and list is created.

Each of these list items are linked to a path which corresponds to index position within array from root.

So something like, path = [1, 2] => so this means the position of this element is at array position of 1 in root, then within that first position, it's within 2nd index.

So now when I handling dragOver for this, within event I get this data. First time it's correct, but in subsequent times I need the updated path that has happened due to re-ordering of elements within array.

Is there way to update the data dynamically for createDroppable?

Swappea avatar Nov 03 '24 11:11 Swappea