mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 08:11:15 +08:00
18 lines
488 B
JavaScript
18 lines
488 B
JavaScript
|
|
import {createStore, applyMiddleware} from 'redux';
|
|
import thunk from 'redux-thunk';
|
|
import mainReducer from 'reducers';
|
|
|
|
/**
|
|
* 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)
|
|
);
|