- Architecting Angular Applications with Redux,RxJS,and NgRx
- Christoffer Noring
- 78字
- 2021-08-27 19:56:18
Dispatcher – the spider in the web
Think of the dispatcher as the spider in the web that handles messages being passed to it. You can also think of the dispatcher as a mailman who promises that your message will reach its target destination. A dispatcher lives, for one thing, to dispatch messages to anyone who will listen. There is usually just one dispatcher in a Flux architecture and a typical usage looks something like this:
dispatcher.dispatch(message);