GB-G
Convex Community8mo ago
4 replies
GB-

Dnd-kit and Mutations

Hi. I'm quite new to Convex and Dnd-kit. Hopefully someone can help me,
I'm trying to create a UI where the user can rearrange a sortable list. The sortable list works great when just updating the UI, but when I add a mutation to the onDragEnd function, it seems like the Convex query is identifying that the data has changed and it refreshes each of the items in the list.

I've tried using withOptimisticUpdate but that hasn't made any difference.

Is this a common problem? Any pointers?
Was this page helpful?