| author | ymh <ymh.work@gmail.com> |
| Mon, 22 May 2017 14:34:35 +0200 | |
| changeset 1 | 431977d7c9a6 |
| 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 |
}; |