Created
June 16, 2020 09:58
-
-
Save velotiotech/c197bc2c441e3ad48e89836e1df75f61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore } from 'redux' | |
import reducer from './reducers'; | |
const initialState = { | |
byId: { | |
isLoading: null, | |
error: null, | |
data: null | |
}, | |
byBulk: { | |
isLoading: null, | |
error: null, | |
data: null | |
} | |
}; | |
const store = createStore(reducer, initialState, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()); | |
export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment