UNPKG

@empathyco/x-components

Version:
71 lines (33 loc) 923 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [setStatus](./x-components.setstatus.md) ## setStatus() function Sets the request status. Can be used as a mutation. **Signature:** ```typescript export declare function setStatus(state: StatusState, status: RequestStatus): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> state </td><td> [StatusState](./x-components.statusstate.md) </td><td> The [state](https://vuex.vuejs.org/guide/state.html) provided by Vuex. </td></tr> <tr><td> status </td><td> [RequestStatus](./x-components.requeststatus.md) </td><td> The new request status. </td></tr> </tbody></table> **Returns:** void