From a94ac6f37e12c50705be6a7912f21e253c4aacc1 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Mon, 21 Aug 2017 16:48:30 -0700 Subject: [PATCH] For Redux dev tools, use newer __REDUX_DEVTOOLS_EXTENSION__ API. Fixes #1196 --- templates/ReactReduxSpa/ClientApp/configureStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ReactReduxSpa/ClientApp/configureStore.ts b/templates/ReactReduxSpa/ClientApp/configureStore.ts index 79c22ab..7a3b4f4 100644 --- a/templates/ReactReduxSpa/ClientApp/configureStore.ts +++ b/templates/ReactReduxSpa/ClientApp/configureStore.ts @@ -9,7 +9,7 @@ export default function configureStore(history: History, initialState?: Applicat // Build middleware. These are functions that can process the actions before they reach the store. const windowIfDefined = typeof window === 'undefined' ? null : window as any; // If devTools is installed, connect to it - const devToolsExtension = windowIfDefined && windowIfDefined.devToolsExtension as () => GenericStoreEnhancer; + const devToolsExtension = windowIfDefined && windowIfDefined.__REDUX_DEVTOOLS_EXTENSION__ as () => GenericStoreEnhancer; const createStoreWithMiddleware = compose( applyMiddleware(thunk, routerMiddleware(history)), devToolsExtension ? devToolsExtension() : (next: StoreEnhancerStoreCreator) => next