refactor(deps): remove easy-peasy and redux-thunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user