@empathyco/x-components
Version:
Empathy X Components
14 lines (8 loc) • 545 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [addQueryToHistory](./x-components.addquerytohistory.md)
## addQueryToHistory variable
Default implementation for the [HistoryQueriesActions.addQueryToHistory()](./x-components.historyqueriesactions.addquerytohistory.md)<!-- -->.
**Signature:**
```typescript
addQueryToHistory: ({ state, dispatch }: HistoryQueriesActionContext, query: string) => void | Promise<void>
```