<!-- 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; [toggleHistoryQueries](./x-components.historyqueriesactions.togglehistoryqueries.md)

## HistoryQueriesActions.toggleHistoryQueries() method

Toggles the history queries and stores the state in the browser storage. It also cleans the history queries when disabling them.

**Signature:**

```typescript
toggleHistoryQueries(isEnabled: boolean): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  isEnabled | boolean | Whether to enable or disable the history queries. |

**Returns:**

void

