docs(changeset): Using the effect of array as feature.

This commit is contained in:
Hein 2025-12-01 11:48:05 +02:00
parent 017b6445fb
commit 32054118de
3 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
'@warkypublic/oranguru': patch
---
Using the effect of array as feature.

View File

@ -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) ||

View File

@ -142,7 +142,7 @@ export const Computer = React.memo(() => {
onChange(buffers);
}
}
}, [JSON.stringify(_gridSelectionRows), getState]);
}, [_gridSelectionRows, _gridSelectionRows?.length, getState]);
useEffect(() => {
setState(