@tanstack/react-table 8.5.10 → 8.5.13
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 +5 -2
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +5 -2
- 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 +5 -2
- 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
|
@@ -1913,7 +1913,7 @@ const Pinning = {
|
|
|
1913
1913
|
}),
|
|
1914
1914
|
getRightVisibleCells: memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.right], (allCells, right) => {
|
|
1915
1915
|
const cells = (right != null ? right : []).map(columnId => allCells.find(cell => cell.column.id === columnId)).filter(Boolean).map(d => ({ ...d,
|
|
1916
|
-
position: '
|
|
1916
|
+
position: 'right'
|
|
1917
1917
|
}));
|
|
1918
1918
|
return cells;
|
|
1919
1919
|
}, {
|
|
@@ -3065,13 +3065,16 @@ function createCell(table, row, column, columnId) {
|
|
|
3065
3065
|
column,
|
|
3066
3066
|
getValue: () => row.getValue(columnId),
|
|
3067
3067
|
renderValue: getRenderValue,
|
|
3068
|
-
getContext: () => ({
|
|
3068
|
+
getContext: memo(() => [table, column, row, cell], (table, column, row, cell) => ({
|
|
3069
3069
|
table,
|
|
3070
3070
|
column,
|
|
3071
3071
|
row,
|
|
3072
3072
|
cell: cell,
|
|
3073
3073
|
getValue: cell.getValue,
|
|
3074
3074
|
renderValue: cell.renderValue
|
|
3075
|
+
}), {
|
|
3076
|
+
key: process.env.NODE_ENV === 'development' && 'cell.getContext',
|
|
3077
|
+
debug: () => table.options.debugAll
|
|
3075
3078
|
})
|
|
3076
3079
|
};
|
|
3077
3080
|
|