redux-saga-beginner-tutorial
redux-saga-beginner-tutorial copied to clipboard
all is not defined
In section "Making Asynchronous calls" :
export default function* rootSaga() {
yield all([
helloSaga(),
watchIncrementAsync()
])
}
Q: It throw an error as follow
uncaught at rootSaga
ReferenceError: all is not defined
The saga version is ^0.15.0, how can I solve this question? thanks.
import {all} from 'redux-saga/effects'
import { put, takeEvery, all } from 'redux-saga/effects';
Please also import all while importing put, takeEvery on very second line of the sagas.js.