We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a40adab commit a94ac6fCopy full SHA for a94ac6f
templates/ReactReduxSpa/ClientApp/configureStore.ts
@@ -9,7 +9,7 @@ export default function configureStore(history: History, initialState?: Applicat
9
// Build middleware. These are functions that can process the actions before they reach the store.
10
const windowIfDefined = typeof window === 'undefined' ? null : window as any;
11
// If devTools is installed, connect to it
12
- const devToolsExtension = windowIfDefined && windowIfDefined.devToolsExtension as () => GenericStoreEnhancer;
+ const devToolsExtension = windowIfDefined && windowIfDefined.__REDUX_DEVTOOLS_EXTENSION__ as () => GenericStoreEnhancer;
13
const createStoreWithMiddleware = compose(
14
applyMiddleware(thunk, routerMiddleware(history)),
15
devToolsExtension ? devToolsExtension() : <S>(next: StoreEnhancerStoreCreator<S>) => next
0 commit comments