@ceed/ads 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/framer/index.js +34 -34
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3575,6 +3575,8 @@ function useDataTableRenderer({
|
|
|
3575
3575
|
isTotalSelected: _isTotalSelected,
|
|
3576
3576
|
isRowSelectable
|
|
3577
3577
|
}) {
|
|
3578
|
+
const onSelectionModelChangeRef = (0, import_react25.useRef)(onSelectionModelChange);
|
|
3579
|
+
onSelectionModelChangeRef.current = onSelectionModelChange;
|
|
3578
3580
|
const [focusedRowId, setFocusedRowId] = (0, import_react25.useState)(null);
|
|
3579
3581
|
const [sortModel, setSortModel] = useControlledState(
|
|
3580
3582
|
controlledSortModel,
|
|
@@ -3764,7 +3766,7 @@ function useDataTableRenderer({
|
|
|
3764
3766
|
}
|
|
3765
3767
|
}, [page, rowCount, pageSize, handlePageChange]);
|
|
3766
3768
|
(0, import_react25.useEffect)(() => {
|
|
3767
|
-
|
|
3769
|
+
onSelectionModelChangeRef.current?.([]);
|
|
3768
3770
|
}, [page]);
|
|
3769
3771
|
return {
|
|
3770
3772
|
rowCount,
|
package/dist/index.js
CHANGED
|
@@ -3531,6 +3531,8 @@ function useDataTableRenderer({
|
|
|
3531
3531
|
isTotalSelected: _isTotalSelected,
|
|
3532
3532
|
isRowSelectable
|
|
3533
3533
|
}) {
|
|
3534
|
+
const onSelectionModelChangeRef = useRef4(onSelectionModelChange);
|
|
3535
|
+
onSelectionModelChangeRef.current = onSelectionModelChange;
|
|
3534
3536
|
const [focusedRowId, setFocusedRowId] = useState6(null);
|
|
3535
3537
|
const [sortModel, setSortModel] = useControlledState(
|
|
3536
3538
|
controlledSortModel,
|
|
@@ -3720,7 +3722,7 @@ function useDataTableRenderer({
|
|
|
3720
3722
|
}
|
|
3721
3723
|
}, [page, rowCount, pageSize, handlePageChange]);
|
|
3722
3724
|
useEffect5(() => {
|
|
3723
|
-
|
|
3725
|
+
onSelectionModelChangeRef.current?.([]);
|
|
3724
3726
|
}, [page]);
|
|
3725
3727
|
return {
|
|
3726
3728
|
rowCount,
|