Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 6d28daa

Browse files
authored
Merge pull request #1606 from blockstack/feature/unify-store-config
Unify Store Config
2 parents 5b58146 + e22f00f commit 6d28daa

File tree

3 files changed

+3
-35
lines changed

3 files changed

+3
-35
lines changed
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { createStore, applyMiddleware, compose } from 'redux'
22
import persistState from 'redux-localstorage'
33
import thunk from 'redux-thunk'
4-
import { initialState as AuthInitialState } from '../../auth/store/auth'
5-
import RootReducer from '../reducers'
4+
import { initialState as AuthInitialState } from '../auth/store/auth'
5+
import RootReducer from './reducers'
66

77
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
88

@@ -15,14 +15,5 @@ const finalCreateStore = composeEnhancers(
1515
)(createStore)
1616

1717
export default function configureStore(initialState) {
18-
const store = finalCreateStore(RootReducer, initialState)
19-
20-
// if (module.hot) {
21-
// /* eslint global-require: 0 */
22-
// module.hot.accept('./reducers/index.js', () =>
23-
// store.replaceReducer(require('./reducers.js'))
24-
// )
25-
// }
26-
27-
return store
18+
return finalCreateStore(RootReducer, initialState)
2819
}

app/js/store/configure/index.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/js/store/configure/production.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)