mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
19 lines
539 B
JavaScript
19 lines
539 B
JavaScript
const createStore = require('redux').createStore
|
|
const applyMiddleware = require('redux').applyMiddleware
|
|
const thunkMiddleware = require('redux-thunk').default
|
|
const createLogger = require('redux-logger').createLogger
|
|
const rootReducer = function () {}
|
|
|
|
module.exports = configureStore
|
|
|
|
const loggerMiddleware = createLogger()
|
|
|
|
const createStoreWithMiddleware = applyMiddleware(
|
|
thunkMiddleware,
|
|
loggerMiddleware
|
|
)(createStore)
|
|
|
|
function configureStore (initialState) {
|
|
return createStoreWithMiddleware(rootReducer, initialState)
|
|
}
|