UNPKG

@empathyco/x-components

Version:
23 lines (13 loc) 577 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XActionContext](./x-components.xactioncontext.md) &gt; [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