@tanstack/react-table 8.5.9 → 8.5.12
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/build/cjs/table-core/build/esm/index.js +4 -3
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +4 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +17 -17
- package/build/stats-react.json +18 -18
- package/build/umd/index.development.js +4 -3
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -3063,13 +3063,16 @@ function createCell(table, row, column, columnId) {
|
|
|
3063
3063
|
column,
|
|
3064
3064
|
getValue: () => row.getValue(columnId),
|
|
3065
3065
|
renderValue: getRenderValue,
|
|
3066
|
-
getContext: () => ({
|
|
3066
|
+
getContext: memo(() => [table, column, row, cell], (table, column, row, cell) => ({
|
|
3067
3067
|
table,
|
|
3068
3068
|
column,
|
|
3069
3069
|
row,
|
|
3070
3070
|
cell: cell,
|
|
3071
3071
|
getValue: cell.getValue,
|
|
3072
3072
|
renderValue: cell.renderValue
|
|
3073
|
+
}), {
|
|
3074
|
+
key: process.env.NODE_ENV === 'development' && 'cell.getContext',
|
|
3075
|
+
debug: () => table.options.debugAll
|
|
3073
3076
|
})
|
|
3074
3077
|
};
|
|
3075
3078
|
|
|
@@ -3801,7 +3804,6 @@ function getExpandedRowModel() {
|
|
|
3801
3804
|
|
|
3802
3805
|
if (!paginateExpandedRows) {
|
|
3803
3806
|
// Only expand rows at this point if they are being paginated
|
|
3804
|
-
console.log(rowModel.rows);
|
|
3805
3807
|
return rowModel;
|
|
3806
3808
|
}
|
|
3807
3809
|
|
|
@@ -3870,7 +3872,6 @@ function getPaginationRowModel(opts) {
|
|
|
3870
3872
|
};
|
|
3871
3873
|
}
|
|
3872
3874
|
|
|
3873
|
-
console.log(paginatedRowModel.rows);
|
|
3874
3875
|
paginatedRowModel.flatRows = [];
|
|
3875
3876
|
|
|
3876
3877
|
const handleRow = row => {
|