@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 754 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [NextQueriesMutations](./x-components.nextqueriesmutations.md) > [setResultsPreview](./x-components.nextqueriesmutations.setresultspreview.md)
## NextQueriesMutations.setResultsPreview() method
Adds a new entry to the result's dictionary.
**Signature:**
```typescript
setResultsPreview(resultsPreview: Dictionary<PreviewResults>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| resultsPreview | Dictionary<PreviewResults> | Object containing the next query, the totalResults and the results to add. |
**Returns:**
void