summaryrefslogtreecommitdiff
path: root/frontend/src/store.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/store.js')
-rw-r--r--frontend/src/store.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/frontend/src/store.js b/frontend/src/store.js
index e028bac1..2000d706 100644
--- a/frontend/src/store.js
+++ b/frontend/src/store.js
@@ -1,10 +1,12 @@
import { createStore, applyMiddleware, compose } from 'redux'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux'
+import { fromJS } from 'immutable'
import createReducer from './reducers'
import createSagaMiddleware from 'redux-saga'
import rootSaga from './sagas'
+import { makeSelectLocationState } from './redux/app'
export default function configureStore(initialState = {}) {
const sagaMiddleware = createSagaMiddleware()
@@ -26,7 +28,7 @@ export default function configureStore(initialState = {}) {
const store = createStore(
createReducer(),
- initialState,
+ fromJS(initialState),
composeEnhancers(...enhancers)
)
@@ -34,6 +36,8 @@ export default function configureStore(initialState = {}) {
return {
store,
- history: syncHistoryWithStore(browserHistory, store)
+ history: syncHistoryWithStore(browserHistory, store, {
+ selectLocationState: makeSelectLocationState()
+ })
}
}
bgstack15