Answer the question
In order to leave comments, you need to log in
What is the difference between these two kinds of rootSaga configuration?
the code below is a trial version of rootSaga in redux-saga
Can anyone tell me the difference?
// kind 1
export default function* rootProjectSaga (): IterableIterator<any> {
yield all([
takeEvery(TRANSFER_PROJECT, transferProject as any),
takeLatest(LOAD_PROJECTS, getProjects as any)
])
}
// kind 2
export default function* rootProjectSaga (): IterableIterator<any> {
yield takeEvery(TRANSFER_PROJECT, transferProject as any)
yield takeLatest(LOAD_PROJECTS, getProjects as any)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question