We import put and takeEvery from redux-saga/effects. When we call put, redux saga instructs the middleware to dispatch an action. takeEvery will listen for dispatched action (in our case FETCHING_DATA) and call a callback function (in our case fetchData)
Redux 4 Ways
Nader Dabit
2.3K14

Is it possible to have only one generator instead of 2 nested?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.