Dispatcher
Class to manage Flux actions flow.
Constructor Summary
| Public Constructor | ||
| public |
Creates a new Dispatcher instance. |
|
Method Summary
| Public Methods | ||
| public |
Dispatches an action, triggering the registered callbacks. |
|
| public |
flush() Triggers the registered callbacks for all queued actions. |
|
| public |
Registers a callback to be executed at every action. |
|
| public |
unregister(callback: Function): Boolean Removes the given callback from the registry. |
|
Public Constructors
Public Methods
public dispatch(payload: Object) source
Dispatches an action, triggering the registered callbacks.
Params:
| Name | Type | Attribute | Description |
| payload | Object |