@empathyco/x-components
Version:
Empathy X Components
22 lines (13 loc) • 1 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewActions](./x-components.queriespreviewactions.md)
## QueriesPreviewActions interface
QueriesPreview store actions.
**Signature:**
```typescript
export interface QueriesPreviewActions
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [fetchAndSaveQueryPreview](./x-components.queriespreviewactions.fetchandsavequerypreview.md) | | (request: SearchRequest) => void | Requests the results for a cacheable query preview and saves them in the state. |
| [fetchQueryPreview](./x-components.queriespreviewactions.fetchquerypreview.md) | | (request: SearchRequest) => SearchResponse \| null | Requests the results for a query preview, limited by [QueriesPreviewConfig.maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md)<!-- -->. |