@empathyco/x-components
Version:
Empathy X Components
22 lines (13 loc) • 998 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [FetchAndSaveActions](./x-components.fetchandsaveactions.md)
## FetchAndSaveActions interface
Actions returned from the [createFetchAndSaveActions()](./x-components.createfetchandsaveactions.md)<!-- -->.
**Signature:**
```typescript
export interface FetchAndSaveActions<Context extends XActionContext<StatusState, object, StatusMutations, object>, Request>
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [cancelPrevious](./x-components.fetchandsaveactions.cancelprevious.md) | | () => void | Action that cancels the previous request call if it stills in progress. |
| [fetchAndSave](./x-components.fetchandsaveactions.fetchandsave.md) | | (context: Context, request: Request) => void \| Promise<void> | Action that requests and saves the response. |