<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [AddQueryToHistoryAction](./x-components.addquerytohistoryaction.md)

## AddQueryToHistoryAction class

Class implementation for the [HistoryQueriesActions.addQueryToHistory](./x-components.historyqueriesactions.addquerytohistory.md) action.

**Signature:**

```typescript
export declare class AddQueryToHistoryAction implements ActionsClass<HistoryQueriesXStoreModule> 
```
**Implements:** [ActionsClass](./x-components.actionsclass.md)<!-- -->&lt;[HistoryQueriesXStoreModule](./x-components.historyqueriesxstoremodule.md)<!-- -->&gt;

## Methods

<table><thead><tr><th>

Method


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[addQueryToHistory({ state, dispatch }, input, query)](./x-components.addquerytohistoryaction.addquerytohistory.md)


</td><td>


</td><td>

Default implementation for the [HistoryQueriesActions.addQueryToHistory](./x-components.historyqueriesactions.addquerytohistory.md)<!-- -->.


</td></tr>
</tbody></table>

