@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 937 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [HistoryQueriesActions](./x-components.historyqueriesactions.md) > [setHistoryQueries](./x-components.historyqueriesactions.sethistoryqueries.md)
## HistoryQueriesActions.setHistoryQueries() method
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)<!-- -->.
**Signature:**
```typescript
setHistoryQueries(historyQueries: HistoryQuery[]): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| historyQueries | HistoryQuery\[\] | The new history queries to save to the state and the browser storage. |
**Returns:**
void