Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit a94ac6f

Browse files
For Redux dev tools, use newer __REDUX_DEVTOOLS_EXTENSION__ API. Fixes #1196
1 parent a40adab commit a94ac6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/ReactReduxSpa/ClientApp/configureStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function configureStore(history: History, initialState?: Applicat
99
// Build middleware. These are functions that can process the actions before they reach the store.
1010
const windowIfDefined = typeof window === 'undefined' ? null : window as any;
1111
// If devTools is installed, connect to it
12-
const devToolsExtension = windowIfDefined && windowIfDefined.devToolsExtension as () => GenericStoreEnhancer;
12+
const devToolsExtension = windowIfDefined && windowIfDefined.__REDUX_DEVTOOLS_EXTENSION__ as () => GenericStoreEnhancer;
1313
const createStoreWithMiddleware = compose(
1414
applyMiddleware(thunk, routerMiddleware(history)),
1515
devToolsExtension ? devToolsExtension() : <S>(next: StoreEnhancerStoreCreator<S>) => next

0 commit comments

Comments
 (0)