Skip to content

Commit 0145e71

Browse files
committed
Docs: use callback in configureStore example
1 parent 7850a6d commit 0145e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/configureStore.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ const store = configureStore({
199199
middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(logger),
200200
devTools: process.env.NODE_ENV !== 'production',
201201
preloadedState,
202-
enhancers: [reduxBatch],
202+
enhancers: (existingEnhancersArray) => [reduxBatch, ...existingEnhancersArray, reduxBatch],
203203
})
204204
205205
// The store has been created with these options:

0 commit comments

Comments
 (0)