Permalink
Browse files

Step 0: Setup

  • Loading branch information...
abalone0204 committed May 15, 2016
1 parent f23e098 commit 1a4455b23ce6bc434d17a8c2ebcbf9e80e922be5
Showing with 16 additions and 3 deletions.
  1. +1 −0 package.json
  2. +7 −0 source/sagas/index.js
  3. 0 source/sagas/login.js
  4. +8 −3 source/store.js
View
@@ -18,6 +18,7 @@
"react-dom": "^15.0.2",
"react-redux": "^4.4.5",
"redux": "^3.5.2",
"redux-saga": "^0.10.4",
"redux-thunk": "^2.1.0"
},
"devDependencies": {
View
@@ -0,0 +1,7 @@
export default function* rootSaga() {
yield [
]
}
View
No changes.
View
@@ -1,15 +1,20 @@
import {
createStore,
applyMiddleware
}
from 'redux'
} from 'redux'
import thunkMiddleware from 'redux-thunk'
import createSagaMiddleware from 'redux-saga'
import rootReducer from './reducers'
import rootSaga from './sagas'
const sagaMiddleware = createSagaMiddleware()
const store = createStore(rootReducer,
applyMiddleware(thunkMiddleware)
applyMiddleware(thunkMiddleware, sagaMiddleware)
)
sagaMiddleware.run(rootSaga)
export default store

1 comment on commit 1a4455b

@abalone0204

This comment has been minimized.

Show comment
Hide comment
@abalone0204

abalone0204 May 16, 2016

Owner

next--> Step 1: watch action

Basic setup for redux saga

In this tutorial , you'll learn how to refactor thunk to saga.

Get better maintainability and better testability.

And here's what is should looks like:

pic

Owner

abalone0204 commented on 1a4455b May 16, 2016

next--> Step 1: watch action

Basic setup for redux saga

In this tutorial , you'll learn how to refactor thunk to saga.

Get better maintainability and better testability.

And here's what is should looks like:

pic

Please sign in to comment.