<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [NextQueriesActions](./x-components.nextqueriesactions.md) &gt; [fetchAndSaveNextQueryPreview](./x-components.nextqueriesactions.fetchandsavenextquerypreview.md)

## NextQueriesActions.fetchAndSaveNextQueryPreview() method

Requests the results to preview a next query and saves them in the state.

**Signature:**

```typescript
fetchAndSaveNextQueryPreview(payload: {
        query: string;
        location: FeatureLocation | undefined;
    }): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  payload | { query: string; location: [FeatureLocation](./x-components.featurelocation.md) \| undefined; } | The payload object containing the query and its location. |

**Returns:**

void

