@empathyco/x-components
Version:
Empathy X Components
29 lines (20 loc) • 1.97 kB
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)
## QueriesPreviewMutations interface
QueriesPreview store mutations.
**Signature:**
```typescript
export interface QueriesPreviewMutations extends ConfigMutations<QueriesPreviewState>
```
**Extends:** [ConfigMutations](./x-components.configmutations.md)<!-- --><[QueriesPreviewState](./x-components.queriespreviewstate.md)<!-- -->>
## Methods
| Method | Description |
| --- | --- |
| [addQueryPreviewInstance(queryPreviewHash)](./x-components.queriespreviewmutations.addquerypreviewinstance.md) | Increases in 1 the instance counter. |
| [clearQueryPreview(queryPreviewHash)](./x-components.queriespreviewmutations.clearquerypreview.md) | Removes a query preview entry from the queries preview's dictionary. |
| [removeQueryPreviewInstance({ queryPreviewHash, cache })](./x-components.queriespreviewmutations.removequerypreviewinstance.md) | Decreases in 1 the instance counter and removes the query preview if the counter is 0 and cache is false. |
| [setParams(params)](./x-components.queriespreviewmutations.setparams.md) | Sets the extra params of the module. |
| [setQueryPreviewCached(queryPreview)](./x-components.queriespreviewmutations.setquerypreviewcached.md) | Adds a new entry to the cached queries preview's dictionary. |
| [setSelectedQueryPreview(selectedQueryPreview)](./x-components.queriespreviewmutations.setselectedquerypreview.md) | Sets the selected query preview of the module. |
| [setStatus(payload)](./x-components.queriespreviewmutations.setstatus.md) | Sets the status of a query preview request. |
| [updateAQueryPreviewResult({ result, queryPreviewHash })](./x-components.queriespreviewmutations.updateaquerypreviewresult.md) | Updates a result with new fields. |