Cancel another saga generator from execution #2212
Unanswered
Mihai-github
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Code for generator B that should cancel the generator A:
const task = yield fork(handleGetConversations, {
payload: {callback: {}},
type: EChatTypes.GET_CONVERSATIONS_SAGA,
});
yield take(EChatTypes.GET_CONVERSATIONS_SAGA);
yield cancel(task);
yield cancelled();
Hope someone can help me figure out how to solve it.
Beta Was this translation helpful? Give feedback.
All reactions