refactor(deps): remove easy-peasy and redux-thunk

This commit is contained in:
moklick
2021-02-11 18:57:01 +01:00
parent ba5286a105
commit 9b70e1e0fa
4 changed files with 45 additions and 189 deletions
+2 -5
View File
@@ -1,13 +1,10 @@
import { applyMiddleware, compose, createStore, Store } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { createStore, Store } from 'redux';
import { ReactFlowState } from '../types';
import { ReactFlowAction } from './actions';
import reactFlowReducer from './reducer';
export default function configureStore(preloadedState: ReactFlowState): Store<ReactFlowState, ReactFlowAction> {
const composedEnhancers = compose(applyMiddleware(thunkMiddleware));
const store = createStore(reactFlowReducer, preloadedState, composedEnhancers);
const store = createStore(reactFlowReducer, preloadedState);
return store;
}