mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
19 lines
547 B
JavaScript
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)
|
|
)
|