@empathyco/x-components
Version:
Empathy X Components
23 lines (13 loc) • 577 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.md)
## XActionContext.commit() method
**Signature:**
```typescript
commit<MutationName extends PropsWithType<Mutations, () => void>>(mutation: MutationName): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| mutation | MutationName | |
**Returns:**
void