You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
541 B
19 lines
541 B
4 years ago
|
import { createStore, applyMiddleware } from 'redux';
|
||
|
import thunkMiddleware from 'redux-thunk';
|
||
|
import { composeWithDevTools } from 'remote-redux-devtools';
|
||
|
import rootReducer from '../ducks';
|
||
9 years ago
|
|
||
4 years ago
|
export default function configureStore(initialState) {
|
||
5 years ago
|
const composeEnhancers = composeWithDevTools({
|
||
|
name: 'MetaMask',
|
||
|
hostname: 'localhost',
|
||
|
port: 8000,
|
||
|
realtime: Boolean(process.env.METAMASK_DEBUG),
|
||
4 years ago
|
});
|
||
4 years ago
|
return createStore(
|
||
|
rootReducer,
|
||
|
initialState,
|
||
|
composeEnhancers(applyMiddleware(thunkMiddleware)),
|
||
4 years ago
|
);
|
||
9 years ago
|
}
|