diff --git a/examples/with-redux-saga/package.json b/examples/with-redux-saga/package.json index 9e19f5a55bf06..033007cb19071 100644 --- a/examples/with-redux-saga/package.json +++ b/examples/with-redux-saga/package.json @@ -8,18 +8,18 @@ "start": "next start" }, "dependencies": { - "es6-promise": "4.1.1", - "isomorphic-unfetch": "2.0.0", + "es6-promise": "4.2.5", + "isomorphic-unfetch": "3.0.0", "next": "latest", "next-redux-saga": "3.0.0", - "next-redux-wrapper": "2.0.0", + "next-redux-wrapper": "2.1.0", "react": "^16.7.0", "react-dom": "^16.7.0", - "react-redux": "5.0.7", - "redux": "4.0.0", - "redux-saga": "0.16.0" + "react-redux": "6.0.0", + "redux": "4.0.1", + "redux-saga": "1.0.0" }, "devDependencies": { - "redux-devtools-extension": "2.13.2" + "redux-devtools-extension": "2.13.7" } } diff --git a/examples/with-redux-saga/saga.js b/examples/with-redux-saga/saga.js index cd492cea74d36..7d99739a6f45f 100644 --- a/examples/with-redux-saga/saga.js +++ b/examples/with-redux-saga/saga.js @@ -1,7 +1,6 @@ /* global fetch */ -import { delay } from 'redux-saga' -import { all, call, put, take, takeLatest } from 'redux-saga/effects' +import { all, call, delay, put, take, takeLatest } from 'redux-saga/effects' import es6promise from 'es6-promise' import 'isomorphic-unfetch' @@ -13,7 +12,7 @@ function * runClockSaga () { yield take(actionTypes.START_CLOCK) while (true) { yield put(tickClock(false)) - yield call(delay, 1000) + yield delay(1000) } }