@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 757 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [RelatedPromptsActions](./x-components.relatedpromptsactions.md) > [fetchAndSaveRelatedPrompts](./x-components.relatedpromptsactions.fetchandsaverelatedprompts.md)
## RelatedPromptsActions.fetchAndSaveRelatedPrompts() method
Requests a new set of related prompts and stores them in the module.
**Signature:**
```typescript
fetchAndSaveRelatedPrompts(request: RelatedPromptsRequest | null): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| request | RelatedPromptsRequest \| null | The related prompts request. |
**Returns:**
void