<!-- 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

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [addQueryToHistory({ state, dispatch }, query)](./x-components.addquerytohistoryaction.addquerytohistory.md) |  | Default implementation for the [HistoryQueriesActions.addQueryToHistory()](./x-components.historyqueriesactions.addquerytohistory.md)<!-- -->. |

