docs(changeset): Using the effect of array as feature.
This commit is contained in:
parent
017b6445fb
commit
32054118de
5
.changeset/twelve-tools-buy.md
Normal file
5
.changeset/twelve-tools-buy.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@warkypublic/oranguru': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Using the effect of array as feature.
|
||||||
@ -231,7 +231,7 @@ export const GridlerDataGrid = () => {
|
|||||||
rows = rows.hasIndex(r) ? rows : rows.add(r);
|
rows = rows.hasIndex(r) ? rows : rows.add(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log('Debug:onGridSelectionChange', currentSelection, selection);
|
||||||
if (
|
if (
|
||||||
JSON.stringify(currentSelection?.columns) !== JSON.stringify(selection.columns) ||
|
JSON.stringify(currentSelection?.columns) !== JSON.stringify(selection.columns) ||
|
||||||
JSON.stringify(currentSelection?.rows) !== JSON.stringify(rows) ||
|
JSON.stringify(currentSelection?.rows) !== JSON.stringify(rows) ||
|
||||||
|
|||||||
@ -142,7 +142,7 @@ export const Computer = React.memo(() => {
|
|||||||
onChange(buffers);
|
onChange(buffers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [JSON.stringify(_gridSelectionRows), getState]);
|
}, [_gridSelectionRows, _gridSelectionRows?.length, getState]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setState(
|
setState(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user