redux-saga / redux-saga-beginner-tutorial

Redux/Redux-saga beginner tutorial
MIT License
587 stars 544 forks source link

Tutorial fails on `delay` not defined #3

Closed mocheng closed 8 years ago

mocheng commented 8 years ago

Following tutorial on http://yelouafi.github.io/redux-saga/docs/introduction/BeginnerTutorial.html , below code cannot actually initialize delay since it is not exported from redux-saga

import { takeEvery, delay } from 'redux-saga'

It throws exception when run npm test

/Users/morgan.cheng/github/redux-saga-beginner-tutorial/node_modules/babel-cli/node_modules/babel-polyfill/node_modules/babel-regenerator-runtime/runtime.js:511
        throw exception;
        ^

TypeError: (0 , _reduxSaga.delay) is not a function
    at incrementAsync$ (sagas.js:12:9)
mocheng commented 8 years ago

It looks delay is not available till redux-saga 0.10.0, while package.json specifies it to be ^0.8.0.