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 2ad442e commit b971340Copy full SHA for b971340
src/configureStore.js
@@ -45,9 +45,16 @@ export function configureStore(options = {}) {
45
46
const middlewareEnhancer = applyMiddleware(...middleware)
47
48
- const storeEnhancers = [middlewareEnhancer, ...enhancers]
+ let finalCompose = compose
49
+
50
+ if(devTools) {
51
+ finalCompose = composeWithDevTools({
52
+ // Enable capture of stack traces for dispatched Redux actions
53
+ trace : !IS_PRODUCTION
54
+ })
55
+ }
56
- let finalCompose = devTools ? composeWithDevTools : compose
57
+ const storeEnhancers = [middlewareEnhancer, ...enhancers]
58
59
const composedEnhancer = finalCompose(...storeEnhancers)
60
0 commit comments