@smallwebco/tinypivot-react 1.0.12 → 1.0.13

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
@@ -105,7 +105,6 @@ function useExcelGrid(options) {
105
105
  const column = table.getColumn(columnId);
106
106
  if (column) {
107
107
  column.setFilterValue(values.length === 0 ? void 0 : values);
108
- setColumnFilters(table.getState().columnFilters);
109
108
  }
110
109
  },
111
110
  [table]
@@ -1887,6 +1886,9 @@ function DataGrid({
1887
1886
  const end = start + pageSize;
1888
1887
  return searchFilteredData.slice(start, end);
1889
1888
  }, [enablePagination, searchFilteredData, currentPage, pageSize]);
1889
+ useEffect3(() => {
1890
+ setCurrentPage(1);
1891
+ }, [columnFilters, globalSearchTerm]);
1890
1892
  const selectionBounds = useMemo8(() => {
1891
1893
  if (!selectionStart || !selectionEnd) return null;
1892
1894
  return {