Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 16, 2020 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/c197bc2c441e3ad48e89836e1df75f61 to your computer and use it in GitHub Desktop.
Save velotiotech/c197bc2c441e3ad48e89836e1df75f61 to your computer and use it in GitHub Desktop.
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