Dispatcher
There are cases when states of not related components, which has different places in state tree, should change e.g: when list item is selected filter should collapse. This is where dispatcher kicks in. Dispatcher is design to send and receive messages between components.
First create a message
Publish message
and publish message from B component
Receive message
Then in A component subscribe to dispatcher like this:
or you can listen for messages in A component like this:
Last updated