code: 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();
    }
docs: all of these actions have currentParams bound to them as their last arg in withTableParams