From 83b4a2d9ca66805d9e2d80636dcee158580359d0 Mon Sep 17 00:00:00 2001 From: Olivier Louvignes Date: Thu, 12 Dec 2024 17:17:01 +0100 Subject: [PATCH] fix(useDraggableSort): properly track childrenIds --- src/features/sort/hooks/useDraggableSort.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/sort/hooks/useDraggableSort.ts b/src/features/sort/hooks/useDraggableSort.ts index 5ce91bf..e225a81 100644 --- a/src/features/sort/hooks/useDraggableSort.ts +++ b/src/features/sort/hooks/useDraggableSort.ts @@ -109,7 +109,7 @@ export const useDraggableSort = ({ runOnJS(onOrderChange)(draggableSortOrder.value); } }, - [onOrderChange], + [childrenIds, onOrderChange], ); // Track active layout changes and update the placeholder index