| author | ymh <ymh.work@gmail.com> |
| Tue, 23 May 2017 13:15:34 +0200 | |
| changeset 3 | 3b5d37d84cfe |
| parent 1 | client/src/store/configure-store.js@431977d7c9a6 |
| child 12 | 48ddaa42b810 |
| permissions | -rw-r--r-- |
| 1 | 1 |
import rootReducer from '../reducers'; |
2 |
import {createStore} from 'redux'; |
|
3 |
import Immutable from 'immutable'; |
|
4 |
||
5 |
const storeInitialState = Immutable.Map({ |
|
6 |
notes: Immutable.List([]) |
|
7 |
}); |
|
8 |
||
9 |
export default (initialState = storeInitialState) => { |
|
10 |
return createStore(rootReducer, initialState); |
|
11 |
}; |