@empathyco/x-components
Version:
Empathy X Components
28 lines (17 loc) • 870 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) > [removeQueryPreviewInstance](./x-components.queriespreviewmutations.removequerypreviewinstance.md)
## QueriesPreviewMutations.removeQueryPreviewInstance() method
Decreases in 1 the instance counter and removes the query preview if the counter is 0 and cache is false.
**Signature:**
```typescript
removeQueryPreviewInstance({ queryPreviewHash, cache }: {
queryPreviewHash: string;
cache: boolean;
}): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| { queryPreviewHash, cache } | { queryPreviewHash: string; cache: boolean; } | |
**Returns:**
void