1 min readJun 28, 2017
hey there! I dont have enough information to answer you question but I will try!!
- yield take(‘action_type’) will be trigger when you dispatch and action called literally ‘action_type`…. store.dispatch(‘action_type’)
- that is another use case :), the take effect will
listen
for that action, but that is not the only way to trigger a saga, you can also fork it BUT you mentioned something like “Why do we need thatyield take()
statement inside of our saga while we are already calling it based on the dispatched action type in therootSaga
?” that is not 100% accurate, the rootSaga trigger all the sagas, but thetake
ensures they just dont execute until the action is dispatched, without the take, it will keep performing all the operations
If you want to set some jsbin to show me what you are doing maybe I can help u more.
Best regards!