UNPKG

@empathyco/x-components

Version:
78 lines (35 loc) 1.22 kB
<!-- 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 <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [cancelPrevious](./x-components.fetchandsaveactions.cancelprevious.md) </td><td> </td><td> () =&gt; void </td><td> Action that cancels the previous request call if it stills in progress. </td></tr> <tr><td> [fetchAndSave](./x-components.fetchandsaveactions.fetchandsave.md) </td><td> </td><td> (context: Context, request: Request) =&gt; void \| Promise&lt;void&gt; </td><td> Action that requests and saves the response. </td></tr> </tbody></table>