From 06200d1d5217829b335edec657f09ea46b6d5db6 Mon Sep 17 00:00:00 2001 From: Wellington Cordeiro Date: Sat, 6 Apr 2019 14:24:33 -0600 Subject: [PATCH] docs(configureStore): update doc entry for `devTools` option --- docs/api/configureStore.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/api/configureStore.md b/docs/api/configureStore.md index 195a789eaf..a5969142cd 100644 --- a/docs/api/configureStore.md +++ b/docs/api/configureStore.md @@ -21,7 +21,7 @@ function configureStore({ // An array of Redux middlewares. If not supplied, uses getDefaultMiddleware() middleware?: MiddlewareFunction[], // Enable support for the Redux DevTools Extension. Defaults to true. - devTools?: boolean, + devTools?: boolean | EnhancerOptions, // Same as current createStore. preloadedState?: State, // An optional array of Redux store enhancers @@ -52,7 +52,9 @@ For more details on how the `middleware` parameter works and the list of middlew ### `devTools` -A boolean indicating whether `configureStore` should automatically enable support for [the Redux DevTools browser extension](https://github.com/zalmoxisus/redux-devtools-extension). +If this is a boolean, it will be used to indicate whether `configureStore` should automatically enable support for [the Redux DevTools browser extension](https://github.com/zalmoxisus/redux-devtools-extension). + +If it is an object of `redux-devtools-extension` [`EnhancerOptions`](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#windowdevtoolsextensionconfig), `configureStore` will use the user provided configuration options. Defaults to true.