Skip to content

Commit 5ad74aa

Browse files
author
ben.durrant
committed
update docs usage
1 parent 9604e73 commit 5ad74aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/api/configureStore.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ to the store setup for a better development experience.
1818

1919
```ts no-transpile
2020
type ConfigureEnhancersCallback = (
21-
defaultEnhancers: StoreEnhancer[]
21+
defaultEnhancers: EnhancerArray<[StoreEnhancer]>
2222
) => StoreEnhancer[]
2323

2424
interface ConfigureStoreOptions<
@@ -107,7 +107,8 @@ a list of the specific options that are available.
107107
Defaults to `true`.
108108

109109
#### `trace`
110-
The Redux DevTools Extension recently added [support for showing action stack traces](https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/Features/Trace.md) that show exactly where each action was dispatched.
110+
111+
The Redux DevTools Extension recently added [support for showing action stack traces](https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/Features/Trace.md) that show exactly where each action was dispatched.
111112
Capturing the traces can add a bit of overhead, so the DevTools Extension allows users to configure whether action stack traces are captured by [setting the 'trace' argument](https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md#trace).
112113
If the DevTools are enabled by passing `true` or an object, then `configureStore` will default to enabling capturing action stack traces in development mode only.
113114

@@ -129,7 +130,7 @@ If defined as a callback function, it will be called with the existing array of
129130
and should return a new array of enhancers. This is primarily useful for cases where a store enhancer needs to be added
130131
in front of `applyMiddleware`, such as `redux-first-router` or `redux-offline`.
131132

132-
Example: `enhancers: (defaultEnhancers) => [offline, ...defaultEnhancers]` will result in a final setup
133+
Example: `enhancers: (defaultEnhancers) => defaultEnhancers.prepend(offline)` will result in a final setup
133134
of `[offline, applyMiddleware, devToolsExtension]`.
134135

135136
## Usage
@@ -195,7 +196,7 @@ const preloadedState = {
195196
visibilityFilter: 'SHOW_COMPLETED',
196197
}
197198
198-
const debounceNotify = _.debounce(notify => notify());
199+
const debounceNotify = _.debounce((notify) => notify())
199200
200201
const store = configureStore({
201202
reducer,

0 commit comments

Comments
 (0)