src/DataTable/utils/queryParams.js
function setSearchTerm(searchTerm, currentParams) {
    let newParams = {
      ...currentParams,
      page: undefined, //set page undefined to return the table to page 1
      searchTerm: searchTerm === defaults.searchTerm ? undefined : searchTerm
    };
    setNewParams(newParams);
    updateSearch(searchTerm);
    onlyOneFilter && clearFilters();
  }
function setSearchTerm(searchTerm, currentParams) {
    let newParams = {
      ...currentParams,
      page: undefined, //set page undefined to return the table to page 1
      searchTerm: searchTerm === defaults.searchTerm ? undefined : searchTerm
    };
    setNewParams(newParams);
    updateSearch(searchTerm);
    onlyOneFilter && clearFilters();
  }
function setSearchTerm ( searchTerm , currentParams ) { let newParams = { ... currentParams , page : undefined , //set page undefined to return the table to page 1 searchTerm : searchTerm === defaults . searchTerm ? undefined : searchTerm } ; setNewParams ( newParams ) ; updateSearch ( searchTerm ) ; onlyOneFilter && clearFilters ( ) ; }
all of these actions have currentParams bound to them as their last arg in withTableParams
all of these actions have currentParams bound to them as their last arg in withTableParams