<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) &gt; [setQueryPreviewCached](./x-components.queriespreviewmutations.setquerypreviewcached.md)

## QueriesPreviewMutations.setQueryPreviewCached() method

Adds a new entry to the cached queries preview's dictionary.

**Signature:**

```typescript
setQueryPreviewCached(queryPreview: QueryPreviewItem): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  queryPreview | [QueryPreviewItem](./x-components.querypreviewitem.md) | The query preview item to add. |

**Returns:**

void

