@empathyco/x-components
Version:
Empathy X Components
24 lines (14 loc) • 719 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [XActionContext](./x-components.xactioncontext.md) > [commit](./x-components.xactioncontext.commit_1.md)
## XActionContext.commit() method
**Signature:**
```typescript
commit<MutationName extends keyof Mutations>(mutation: MutationName, payload: ExtractPayload<Mutations[MutationName]>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| mutation | MutationName | |
| payload | [ExtractPayload](./x-components.extractpayload.md)<!-- --><Mutations\[MutationName\]> | |
**Returns:**
void