UNPKG

@empathyco/x-components

Version:
27 lines (15 loc) 908 B
<!-- 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 | Parameter | Type | Description | | --- | --- | --- | | action | string | The full action path to dispatch. I.e. <code>x/querySuggestions/fetchSuggestions</code>. | **Returns:** [AnyWire](./x-components.anywire.md) [AnyWire](./x-components.anywire.md) A wire that dispatches the action without any payload.