@empathyco/x-components
Version:
Empathy X Components
71 lines (33 loc) • 923 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [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