UNPKG

@empathyco/x-components

Version:
25 lines (14 loc) 937 B
<!-- 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) &gt; [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