@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.
@@ -3676,7 +3676,9 @@ const useColumnResize = ({
3676
3676
  const userResizedColumnsRef = React.useRef(
3677
3677
  new Set(initialUserResizedIds ?? [])
3678
3678
  );
3679
- const columns = table.options.columns;
3679
+ const columnsKey = JSON.stringify(
3680
+ table.getAllLeafColumns().map((col) => [col.id, col.columnDef.size ?? null])
3681
+ );
3680
3682
  const clearUserResized = React.useCallback(
3681
3683
  (columnId) => {
3682
3684
  userResizedColumnsRef.current.delete(columnId);
@@ -3764,7 +3766,7 @@ const useColumnResize = ({
3764
3766
  }
3765
3767
  });
3766
3768
  if (changed) setColumnSizing((prev) => ({ ...prev, ...newSizing }));
3767
- }, [containerWidth, enabled, columns, columnVisibility, hasSelectionColumn]);
3769
+ }, [containerWidth, enabled, columnsKey, columnVisibility, hasSelectionColumn]);
3768
3770
  const lastDataColumnId = enabled ? (() => {
3769
3771
  const dataCols = table.getVisibleLeafColumns().filter((col) => col.id !== "_selection");
3770
3772
  const lastNonPinned = dataCols.filter((col) => !col.getIsPinned()).at(-1);
@@ -4610,4 +4612,4 @@ exports.useColumnVisibility = useColumnVisibility;
4610
4612
  exports.useTablePagination = useTablePagination;
4611
4613
  exports.useTableSelection = useTableSelection;
4612
4614
  exports.useTableSort = useTableSort;
4613
- //# sourceMappingURL=DataTable-OtA15NKE.js.map
4615
+ //# sourceMappingURL=DataTable-7OC5qqoG.js.map