UNPKG

@empathyco/x-components

Version:
24 lines (15 loc) 1.25 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [RelatedPromptsActions](./x-components.relatedpromptsactions.md) ## RelatedPromptsActions interface Related prompts module actions. **Signature:** ```typescript export interface RelatedPromptsActions ``` ## Methods | Method | Description | | --- | --- | | [cancelFetchAndSaveRelatedPrompts()](./x-components.relatedpromptsactions.cancelfetchandsaverelatedprompts.md) | Cancels / interrupt [RelatedPromptsActions.fetchAndSaveRelatedPrompts()](./x-components.relatedpromptsactions.fetchandsaverelatedprompts.md) synchronous promise. | | [fetchAndSaveRelatedPrompts(request)](./x-components.relatedpromptsactions.fetchandsaverelatedprompts.md) | Requests a new set of related prompts and stores them in the module. | | [fetchRelatedPrompts(request)](./x-components.relatedpromptsactions.fetchrelatedprompts.md) | Requests a new set of related prompts for the module query, and returns them. | | [setUrlParams(urlParams)](./x-components.relatedpromptsactions.seturlparams.md) | Checks if the URL has params on it and then updates the state with these values. |