@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 908 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [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.