@smallwebco/tinypivot-react 1.0.11 → 1.0.12

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/dist/index.cjs CHANGED
@@ -1844,7 +1844,7 @@ function DataGrid({
1844
1844
  const filteredDataForPivot = (0, import_react8.useMemo)(() => {
1845
1845
  const filteredRows = table.getFilteredRowModel().rows;
1846
1846
  return filteredRows.map((row) => row.original);
1847
- }, [table]);
1847
+ }, [table, columnFilters]);
1848
1848
  const {
1849
1849
  rowFields: pivotRowFields,
1850
1850
  columnFields: pivotColumnFields,
@@ -1876,7 +1876,7 @@ function DataGrid({
1876
1876
  values: f.values || []
1877
1877
  }));
1878
1878
  }, [activeFilters]);
1879
- const rows = (0, import_react8.useMemo)(() => table.getRowModel().rows, [table]);
1879
+ const rows = (0, import_react8.useMemo)(() => table.getFilteredRowModel().rows, [table, columnFilters]);
1880
1880
  const searchFilteredData = (0, import_react8.useMemo)(() => {
1881
1881
  if (!globalSearchTerm.trim() || !enableSearch) {
1882
1882
  return rows;