Files
talk/client/coral-admin/src/services/store.js
T
2016-11-03 11:52:28 +01:00

19 lines
547 B
JavaScript

import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import mainReducer from 'reducers'
import talkAdapter from 'services/talk-adapter'
/**
* Create the store by merging the app reducers with
* the talk adapter. The talk adapter is the wire between
* this client and the coral backend. The idea is we can
* write different adapters for other platforms if we want
*/
export default createStore(
mainReducer,
window.devToolsExtension && window.devToolsExtension(),
applyMiddleware(thunk, talkAdapter)
)