@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 750 B
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) > [fetchAndSaveQueryPreview](./x-components.queriespreviewactions.fetchandsavequerypreview.md)
## QueriesPreviewActions.fetchAndSaveQueryPreview() method
Requests the results for a cacheable query preview and saves them in the state.
**Signature:**
```typescript
fetchAndSaveQueryPreview(request: SearchRequest): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| request | SearchRequest | The request object to retrieve the query preview. |
**Returns:**
void