Skip to content

Commit

Permalink
docs(configureStore): update doc entry for devTools option
Browse files Browse the repository at this point in the history
  • Loading branch information
wldcordeiro committed Apr 6, 2019
1 parent 182ca50 commit 06200d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/api/configureStore.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 06200d1

Please sign in to comment.