I don't get how this is different from sagas
jbrodriguez opened this issue · 2 comments
jbrodriguez commented
I don't get how this is different from sagas
sskyy commented
There are two major differences.
First, with saga you still need to dispatch different actions to track the pending/fulfilled/rejected state of an asynchronous task. redux-task track those state automatically for you.
Second, redux-saga listens from redux action while redux-task listens from custom event. So you know exactly an asynchronous task will be running when you emit a event, and state will change directly when you dispatch an action.
Check the docs. There are more differences.
jbrodriguez commented
Thanks @sskyy, I get it now