UNPKG

@empathyco/x-components

Version:
22 lines (13 loc) 998 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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) | | () =&gt; void | Action that cancels the previous request call if it stills in progress. | | [fetchAndSave](./x-components.fetchandsaveactions.fetchandsave.md) | | (context: Context, request: Request) =&gt; void \| Promise&lt;void&gt; | Action that requests and saves the response. |