UNPKG

@empathyco/x-components

Version:
57 lines (27 loc) 1.04 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [wireDispatchWithoutPayload](./x-components.wiredispatchwithoutpayload.md) ## wireDispatchWithoutPayload() function Creates a wire that dispatches an action 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 wireDispatchWithoutPayload(action: string): AnyWire; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> action </td><td> string </td><td> The full action path to dispatch. I.e. `x/querySuggestions/fetchSuggestions`<!-- -->. </td></tr> </tbody></table> **Returns:** [AnyWire](./x-components.anywire.md) [AnyWire](./x-components.anywire.md) A wire that dispatches the action without any payload.