blob: 20710765de8bcca1e86d18f79e06361c320d7c2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import * as _ from 'lodash';
import { createStore, Store as ReduxStore } from 'redux';
import { devToolsEnhancer } from 'redux-devtools-extension/developmentOnly';
import { createReducer, State } from './reducer';
export type Store = ReduxStore<State>;
export const store = {
create: (initialState: State): Store => {
const reducer = createReducer(initialState);
return createStore(reducer, initialState, devToolsEnhancer({}));
},
};
|