mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 02:56:56 +08:00
18 lines
439 B
JavaScript
18 lines
439 B
JavaScript
import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
|
|
import thunk from 'redux-thunk';
|
|
import mainReducer from './reducers';
|
|
import {client} from './client';
|
|
|
|
export default createStore(
|
|
combineReducers({
|
|
...mainReducer,
|
|
apollo: client.reducer()
|
|
}),
|
|
{},
|
|
compose(
|
|
applyMiddleware(client.middleware()),
|
|
applyMiddleware(thunk),
|
|
window.devToolsExtension && window.devToolsExtension()
|
|
)
|
|
);
|