Closed qasim90 closed 1 year ago
I recommend you to check the Fork model, https://github.com/reduxsaga/redux_saga/blob/master/doc/advanced/ForkModel.md You need to spawned a detached task for the TakeLeading, otherwise Cancel will cancel it at the same time. Check https://pub.dev/documentation/redux_saga/latest/redux_saga/TakeLeading.html there is a detached optional parameter, which you may need to set true for your case.
I'm trying to cancel a saga task. The task cancellation works well but the problem is that no more saga tasks are triggered for the same action once a cancel occurs. Below is my cancel setup following Task cancellation docs.