What are the channels? Are they useful to us in day to day programming? We’ll be going through this blog that channels are played really a major role in redux-saga.
Channels:
Channels are of 3 types which are used to perform 3 different things, here I will brief you about those channels here but will explain in detail a bit later.
- Action Channels: Action channel is a buffer, it stockpiles actions which sagas can consume one by one.
- Generic Channels: Generally, we use Generic channels to communicate between two sagas. This can be done through the Actions but the idea of a channel is that communication is limited interest in sagas without other sagas being privy to that information.
- Event Channels: Event Channel is completely different used to wrap outside event sources. we can consider web socket as a good example of the Event channel.
#react #redux #saga #redux-saga