From 32054118de9d79cc7a18fe7f7152113d47673fa6 Mon Sep 17 00:00:00 2001 From: Hein Date: Mon, 1 Dec 2025 11:48:05 +0200 Subject: [PATCH] docs(changeset): Using the effect of array as feature. --- .changeset/twelve-tools-buy.md | 5 +++++ src/Gridler/GridlerDataGrid.tsx | 2 +- src/Gridler/components/Computer.tsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/twelve-tools-buy.md diff --git a/.changeset/twelve-tools-buy.md b/.changeset/twelve-tools-buy.md new file mode 100644 index 0000000..7a81081 --- /dev/null +++ b/.changeset/twelve-tools-buy.md @@ -0,0 +1,5 @@ +--- +'@warkypublic/oranguru': patch +--- + +Using the effect of array as feature. diff --git a/src/Gridler/GridlerDataGrid.tsx b/src/Gridler/GridlerDataGrid.tsx index 69f8bba..d58a11b 100644 --- a/src/Gridler/GridlerDataGrid.tsx +++ b/src/Gridler/GridlerDataGrid.tsx @@ -231,7 +231,7 @@ export const GridlerDataGrid = () => { rows = rows.hasIndex(r) ? rows : rows.add(r); } } - + console.log('Debug:onGridSelectionChange', currentSelection, selection); if ( JSON.stringify(currentSelection?.columns) !== JSON.stringify(selection.columns) || JSON.stringify(currentSelection?.rows) !== JSON.stringify(rows) || diff --git a/src/Gridler/components/Computer.tsx b/src/Gridler/components/Computer.tsx index dde3ff9..4ef1167 100644 --- a/src/Gridler/components/Computer.tsx +++ b/src/Gridler/components/Computer.tsx @@ -142,7 +142,7 @@ export const Computer = React.memo(() => { onChange(buffers); } } - }, [JSON.stringify(_gridSelectionRows), getState]); + }, [_gridSelectionRows, _gridSelectionRows?.length, getState]); useEffect(() => { setState(