1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

push redux-saga to major release 1.0.1. (#6300)

This commit is contained in:
Timon Borter 2019-02-14 19:05:27 +01:00 committed by Tim Neutkens
parent 04ce3e7174
commit d2ef34429c
3 changed files with 6 additions and 7 deletions

View file

@ -11,13 +11,13 @@
"es6-promise": "4.1.1", "es6-promise": "4.1.1",
"isomorphic-unfetch": "2.0.0", "isomorphic-unfetch": "2.0.0",
"next": "latest", "next": "latest",
"next-redux-saga": "3.0.0", "next-redux-saga": "4.0.0",
"next-redux-wrapper": "2.0.0", "next-redux-wrapper": "2.0.0",
"react": "^16.0.0", "react": "^16.0.0",
"react-dom": "^16.0.0", "react-dom": "^16.0.0",
"react-redux": "5.0.7", "react-redux": "5.0.7",
"redux": "4.0.0", "redux": "4.0.1",
"redux-saga": "0.16.0" "redux-saga": "1.0.1"
}, },
"devDependencies": { "devDependencies": {
"redux-devtools-extension": "2.13.2" "redux-devtools-extension": "2.13.2"

View file

@ -29,4 +29,4 @@ class MyApp extends App {
} }
} }
export default withRedux(createStore)(withReduxSaga({ async: true })(MyApp)) export default withRedux(createStore)(withReduxSaga(MyApp))

View file

@ -1,7 +1,6 @@
/* global fetch */ /* global fetch */
import { delay } from 'redux-saga' import { all, call, delay, put, take, takeLatest } from 'redux-saga/effects'
import { all, call, put, take, takeLatest } from 'redux-saga/effects'
import es6promise from 'es6-promise' import es6promise from 'es6-promise'
import 'isomorphic-unfetch' import 'isomorphic-unfetch'
@ -13,7 +12,7 @@ function * runClockSaga () {
yield take(actionTypes.START_CLOCK) yield take(actionTypes.START_CLOCK)
while (true) { while (true) {
yield put(tickClock(false)) yield put(tickClock(false))
yield call(delay, 1000) yield delay(1000)
} }
} }