Quantcast
Channel: Redux-saga calls action after cancel - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by horyd for Redux-saga calls action after cancel

Maybe start by adjusting your loop inside fetchDataWatcher to look a little more like thisexport function* fetchDataWatcher() { while (true) { yield take('FETCH_DATA'); yield call(fetchData); }}Also...

View Article



Answer by garajo for Redux-saga calls action after cancel

This defeats the purpose of saga, which is to handle potentially long running async requests and returns. You could instead set a state in your redux store like soexport function* fetchData() { ......

View Article

Redux-saga calls action after cancel

I'm trying to implement React-boilerplate with redux-saga inside. So i'm trying to fetch some data from the server and then make a redirect to another page. The problem is that before redirecting saga...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>