mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-26 11:37:31 +00:00
Remove 'redux-typed' from ReactReduxSpa template, making it more standard as a Redux application
This commit is contained in:
@@ -2,7 +2,6 @@ import { createStore, applyMiddleware, compose, combineReducers, GenericStoreEnh
|
||||
import thunk from 'redux-thunk';
|
||||
import { routerReducer } from 'react-router-redux';
|
||||
import * as Store from './store';
|
||||
import { typedToPlain } from 'redux-typed';
|
||||
|
||||
export default function configureStore(initialState?: Store.ApplicationState) {
|
||||
// Build middleware. These are functions that can process the actions before they reach the store.
|
||||
@@ -10,7 +9,7 @@ export default function configureStore(initialState?: Store.ApplicationState) {
|
||||
// If devTools is installed, connect to it
|
||||
const devToolsExtension = windowIfDefined && windowIfDefined.devToolsExtension as () => GenericStoreEnhancer;
|
||||
const createStoreWithMiddleware = compose(
|
||||
applyMiddleware(thunk, typedToPlain),
|
||||
applyMiddleware(thunk),
|
||||
devToolsExtension ? devToolsExtension() : f => f
|
||||
)(createStore);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user