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