@empathyco/x-components
Version:
Empathy X Components
78 lines (35 loc) • 1.23 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
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[fetchAndSaveQueryPreview](./x-components.queriespreviewactions.fetchandsavequerypreview.md)
</td><td>
</td><td>
(request: SearchRequest) => void
</td><td>
Requests the results for a cacheable query preview and saves them in the state.
</td></tr>
<tr><td>
[fetchQueryPreview](./x-components.queriespreviewactions.fetchquerypreview.md)
</td><td>
</td><td>
(request: SearchRequest) => SearchResponse \| null
</td><td>
Requests the results for a query preview, limited by [QueriesPreviewConfig.maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md)<!-- -->.
</td></tr>
</tbody></table>