diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2017-05-28 21:32:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-28 21:32:36 +0200 |
commit | ba9cd259ed1ca2370565265eab9fe2628ad6502c (patch) | |
tree | 0c24821770274a414f80b3092d5be54902c042d9 /frontend/src/store.js | |
parent | Fix proxy not working since CRA upgrade (diff) | |
parent | Move to immutable with Records (diff) | |
download | seven-wonders-ba9cd259ed1ca2370565265eab9fe2628ad6502c.tar.gz seven-wonders-ba9cd259ed1ca2370565265eab9fe2628ad6502c.tar.bz2 seven-wonders-ba9cd259ed1ca2370565265eab9fe2628ad6502c.zip |
Merge pull request #14 from luxons/immutable
Move to immutable with Records
Diffstat (limited to 'frontend/src/store.js')
-rw-r--r-- | frontend/src/store.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/store.js b/frontend/src/store.js index 4bd22184..57f43a4f 100644 --- a/frontend/src/store.js +++ b/frontend/src/store.js @@ -1,7 +1,7 @@ import { createStore, applyMiddleware, compose } from 'redux'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux'; -import Immutable from 'seamless-immutable'; +import { fromJS } from 'immutable'; import createReducer from './reducers'; import createSagaMiddleware from 'redux-saga'; @@ -21,7 +21,7 @@ export default function configureStore(initialState = {}) { ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : compose; - const store = createStore(createReducer(), Immutable.from(initialState), composeEnhancers(...enhancers)); + const store = createStore(createReducer(), fromJS(initialState), composeEnhancers(...enhancers)); sagaMiddleware.run(rootSaga, browserHistory); |