@bigbinary/neeto-atoms 1.0.108 → 1.0.109

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.
@@ -3655,7 +3655,9 @@ const useColumnResize = ({
3655
3655
  const userResizedColumnsRef = useRef(
3656
3656
  new Set(initialUserResizedIds ?? [])
3657
3657
  );
3658
- const columns = table.options.columns;
3658
+ const columnsKey = JSON.stringify(
3659
+ table.getAllLeafColumns().map((col) => [col.id, col.columnDef.size ?? null])
3660
+ );
3659
3661
  const clearUserResized = useCallback(
3660
3662
  (columnId) => {
3661
3663
  userResizedColumnsRef.current.delete(columnId);
@@ -3743,7 +3745,7 @@ const useColumnResize = ({
3743
3745
  }
3744
3746
  });
3745
3747
  if (changed) setColumnSizing((prev) => ({ ...prev, ...newSizing }));
3746
- }, [containerWidth, enabled, columns, columnVisibility, hasSelectionColumn]);
3748
+ }, [containerWidth, enabled, columnsKey, columnVisibility, hasSelectionColumn]);
3747
3749
  const lastDataColumnId = enabled ? (() => {
3748
3750
  const dataCols = table.getVisibleLeafColumns().filter((col) => col.id !== "_selection");
3749
3751
  const lastNonPinned = dataCols.filter((col) => !col.getIsPinned()).at(-1);
@@ -4583,4 +4585,4 @@ const DataTable = ({
4583
4585
  };
4584
4586
 
4585
4587
  export { DataTable as D, useColumnPinning as a, useColumnVisibility as b, useTablePagination as c, useTableSelection as d, useTableSort as e, useColumnOrdering as u };
4586
- //# sourceMappingURL=DataTable-mxDU-16D.js.map
4588
+ //# sourceMappingURL=DataTable-Bw8nx-uK.js.map