@@ -40,8 +40,7 @@ function configureStore({
40
40
reducer: Object < string, Function > | Function ,
41
41
// An array of Redux middlewares. If not supplied, defaults to just redux-thunk.
42
42
middleware: Array < MiddlewareFunction> ,
43
- // Built-in support for devtools.
44
- // Defaults to NODE_ENV !== production
43
+ // Built-in support for devtools. Defaults to true.
45
44
devTools: boolean,
46
45
// Same as current createStore.
47
46
preloadedState : State,
@@ -59,7 +58,7 @@ import {configureStore} from "@acemarke/redux-starter-kit";
59
58
import rootReducer from " ./reducers" ;
60
59
61
60
const store = configureStore (rootReducer);
62
- // The store now has redux-thunk added, and if in dev, the Redux DevTools Extension is turned on
61
+ // The store now has redux-thunk added and the Redux DevTools Extension is turned on
63
62
```
64
63
65
64
Full example:
@@ -98,15 +97,15 @@ const preloadedState = {
98
97
const store = configureStore ({
99
98
reducer,
100
99
middleware,
101
- devTools : true ,
100
+ devTools : NODE_ENV !== ' production ' ,
102
101
preloadedState,
103
102
enhancers : [reduxBatch],
104
103
});
105
104
106
105
// The store has been created with these options:
107
106
// - The slice reducers were automatically passed to combineReducers()
108
107
// - redux-thunk and redux-logger were added as middleware
109
- // - The Redux DevTools Extension is enabled for both development and production
108
+ // - The Redux DevTools Extension is disabled for production
110
109
// - The middleware, batch, and devtools enhancers were automatically composed together
111
110
```
112
111
0 commit comments