@ackplus/react-tanstack-data-table 1.1.5 → 1.1.6

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.
@@ -648,7 +648,7 @@ logging, }, ref) {
648
648
  const rowModel = table.getRowModel();
649
649
  return (rowModel === null || rowModel === void 0 ? void 0 : rowModel.rows) || [];
650
650
  // eslint-disable-next-line react-hooks/exhaustive-deps
651
- }, [table, globalFilter, enableGlobalFilter, enableColumnFilter, enablePagination]);
651
+ }, [table, tableData, globalFilter, enableGlobalFilter, enableColumnFilter, enablePagination]);
652
652
  const rowVirtualizer = (0, react_virtual_1.useVirtualizer)({
653
653
  count: rows.length,
654
654
  getScrollElement: () => tableContainerRef.current,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ackplus/react-tanstack-data-table",
3
3
  "type": "commonjs",
4
- "version": "1.1.5",
4
+ "version": "1.1.6",
5
5
  "description": "A powerful React data table component built with MUI and TanStack Table",
6
6
  "keywords": [
7
7
  "react",
@@ -761,7 +761,7 @@ export const DataTable = forwardRef<DataTableApi<any>, DataTableProps<any>>(func
761
761
  const rowModel = table.getRowModel();
762
762
  return rowModel?.rows || [];
763
763
  // eslint-disable-next-line react-hooks/exhaustive-deps
764
- }, [table, globalFilter, enableGlobalFilter, enableColumnFilter, enablePagination]);
764
+ }, [table, tableData, globalFilter, enableGlobalFilter, enableColumnFilter, enablePagination]);
765
765
  const rowVirtualizer = useVirtualizer({
766
766
  count: rows.length,
767
767
  getScrollElement: () => tableContainerRef.current,