i have some data that is available on my draggable elements. i would like to use that data onDragEnd, but i didn't find a way to pass any draggable data excepts the draggableId
which is passed into the result
on the the onDragEnd event.
basically what i need is some kind of custom prop on the draggable that will show up on DragDropContext events. something like:
<>
{cmps.map(cmp => (
<Draggable
key={cmp.name}
draggableId={cmp.name}
index={index}
// this is what im missing
payload={cmp}
// -----------------------
>
<Cmp/>
</Draggable>
)}
</>