Open sareek opened 5 years ago
SOLVED!
The issue was with default keyword on the documentation in saga. While starting more than one Sagas at a time in documentation it is written as,
export default function* rootSaga() {......
It should be,
export function* rootSaga() {
@sareek Please update edit subject/title line of this issue to more meaningful text
@sareek since you have solved the problem, Please close this issue. if you can fix the title that would be great.
SOLUTION! *As you export function as default in sagas.js as follows;
export default function* rootSaga() {
yield all([
helloSaga(),
watchIncrementAsync()
])
}
*You should change the import statement in main.js from:
import { rootSaga } from './sagas';
to:
import rootSaga from './sagas';
Error while trying to run 2 sagas at a time