redux-saga-beginner-tutorial icon indicating copy to clipboard operation
redux-saga-beginner-tutorial copied to clipboard

all is not defined

Open rurusgit opened this issue 7 years ago • 2 comments

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.

rurusgit avatar May 05 '17 07:05 rurusgit

import {all} from 'redux-saga/effects'

dbslone avatar May 05 '17 21:05 dbslone

import { put, takeEvery, all } from 'redux-saga/effects';

Please also import all while importing put, takeEvery on very second line of the sagas.js.

rajanmagar avatar Jul 08 '18 03:07 rajanmagar