mirror of
https://github.com/wassname/talk.git
synced 2026-08-05 13:30:26 +08:00
17 lines
405 B
JavaScript
17 lines
405 B
JavaScript
import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
|
|
import thunk from 'redux-thunk';
|
|
import authReducer from './reducers/auth';
|
|
import {client} from './client';
|
|
|
|
export default createStore(
|
|
combineReducers({
|
|
auth: authReducer,
|
|
apollo: client.reducer()
|
|
}),
|
|
{},
|
|
compose(
|
|
window.devToolsExtension && window.devToolsExtension(),
|
|
applyMiddleware(thunk)
|
|
)
|
|
);
|