<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [HistoryQueriesActions](./x-components.historyqueriesactions.md)

## HistoryQueriesActions interface

HistoryQueries store actions.

**Signature:**

```typescript
export interface HistoryQueriesActions 
```

## Methods

|  Method | Description |
|  --- | --- |
|  [addQueryToHistory(query)](./x-components.historyqueriesactions.addquerytohistory.md) | Saves a query to the history, synchronizing it with the browser storage. There are 3 possible cases. |
|  [loadHistoryQueriesFromBrowserStorage()](./x-components.historyqueriesactions.loadhistoryqueriesfrombrowserstorage.md) | Loads the [historyQueries](./x-components.historyqueriesstate.historyqueries.md) property from the browser storage. |
|  [refreshSession()](./x-components.historyqueriesactions.refreshsession.md) | Refreshes the current search session, updating its TTL. |
|  [removeFromHistory(historyQuery)](./x-components.historyqueriesactions.removefromhistory.md) | Removes a single query from the history, synchronizing it with the browser storage. |
|  [setHistoryQueries(historyQueries)](./x-components.historyqueriesactions.sethistoryqueries.md) | Sets the history queries, synchronizing them with the browser storage. It also removes the oldest query if the history queries length is bigger than the [HistoryQueriesConfig.maxItemsToStore](./x-components.historyqueriesconfig.maxitemstostore.md)<!-- -->. |
|  [setUrlParams(urlParams)](./x-components.historyqueriesactions.seturlparams.md) | Checks if the url has a query on it and then updates the state with that value. |
|  [toggleHistoryQueries(isEnabled)](./x-components.historyqueriesactions.togglehistoryqueries.md) | Toggles the history queries and stores the state in the browser storage. It also cleans the history queries when disabling them. |
|  [updateHistoryQueriesWithSearchResponse(searchResponse)](./x-components.historyqueriesactions.updatehistoryquerieswithsearchresponse.md) | Updates the history queries with the relevant info included in a search response. |

