UNPKG

@empathyco/x-components

Version:
57 lines (27 loc) 1.02 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [wireCommitWithoutPayload](./x-components.wirecommitwithoutpayload.md) ## wireCommitWithoutPayload() function Creates a wire that commits a mutation to the store, but without any payload. This wire can be used in every event, as it does not have a payload type associated. **Signature:** ```typescript export declare function wireCommitWithoutPayload(mutation: string): AnyWire; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> mutation </td><td> string </td><td> The full mutation path to commit. I.e. `x/searchBox/setQuery`<!-- -->. </td></tr> </tbody></table> **Returns:** [AnyWire](./x-components.anywire.md) [AnyWire](./x-components.anywire.md) A wire that commits the mutation without any payload.