Skip to content

Commit

Permalink
upgraded with new run API
Browse files Browse the repository at this point in the history
  • Loading branch information
yelouafi committed Apr 22, 2016
1 parent d40219a commit a3ff4f0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/async/src/store/configureStore.js
Expand Up @@ -6,10 +6,8 @@ import sagaMonitor from '../../../sagaMonitor'

export default function configureStore() {
const sagaMiddleware = createSagaMiddleware({sagaMonitor})
const store = createStore(
rootReducer,
applyMiddleware(sagaMiddleware)
)
store.runSaga = sagaMiddleware.run
return store
return {
...createStore(rootReducer, applyMiddleware(sagaMiddleware)),
runSaga: sagaMiddleware.run
}
}

0 comments on commit a3ff4f0

Please sign in to comment.