Skip to content

Commit

Permalink
push redux-saga to major release 1.0.1. (vercel#6300)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbortt authored and timneutkens committed Feb 14, 2019
1 parent 04ce3e7 commit d2ef344
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions examples/with-redux-saga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"es6-promise": "4.1.1",
"isomorphic-unfetch": "2.0.0",
"next": "latest",
"next-redux-saga": "3.0.0",
"next-redux-saga": "4.0.0",
"next-redux-wrapper": "2.0.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-redux": "5.0.7",
"redux": "4.0.0",
"redux-saga": "0.16.0"
"redux": "4.0.1",
"redux-saga": "1.0.1"
},
"devDependencies": {
"redux-devtools-extension": "2.13.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-redux-saga/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ class MyApp extends App {
}
}

export default withRedux(createStore)(withReduxSaga({ async: true })(MyApp))
export default withRedux(createStore)(withReduxSaga(MyApp))
5 changes: 2 additions & 3 deletions examples/with-redux-saga/saga.js
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -13,7 +12,7 @@ function * runClockSaga () {
yield take(actionTypes.START_CLOCK)
while (true) {
yield put(tickClock(false))
yield call(delay, 1000)
yield delay(1000)
}
}

Expand Down

0 comments on commit d2ef344

Please sign in to comment.