@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.js CHANGED
@@ -1827,7 +1827,7 @@ function DataGrid({
1827
1827
  const filteredDataForPivot = useMemo8(() => {
1828
1828
  const filteredRows = table.getFilteredRowModel().rows;
1829
1829
  return filteredRows.map((row) => row.original);
1830
- }, [table]);
1830
+ }, [table, columnFilters]);
1831
1831
  const {
1832
1832
  rowFields: pivotRowFields,
1833
1833
  columnFields: pivotColumnFields,
@@ -1859,7 +1859,7 @@ function DataGrid({
1859
1859
  values: f.values || []
1860
1860
  }));
1861
1861
  }, [activeFilters]);
1862
- const rows = useMemo8(() => table.getRowModel().rows, [table]);
1862
+ const rows = useMemo8(() => table.getFilteredRowModel().rows, [table, columnFilters]);
1863
1863
  const searchFilteredData = useMemo8(() => {
1864
1864
  if (!globalSearchTerm.trim() || !enableSearch) {
1865
1865
  return rows;