Skip to content

Commit

Permalink
Merge pull request #4606 from koechkevin/patch-1
Browse files Browse the repository at this point in the history
Update ConfiguringYourStore.md
  • Loading branch information
EskiMojo14 authored Nov 7, 2023
2 parents 140e813 + 81f62d0 commit 3d80cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage/ConfiguringYourStore.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ By default, `configureStore` from Redux Toolkit will:
Here's what the hot reloading example might look like using Redux Toolkit:

```js
import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'
import { configureStore } from '@reduxjs/toolkit'

import monitorReducersEnhancer from './enhancers/monitorReducers'
import loggerMiddleware from './middleware/logger'
Expand All @@ -356,7 +356,7 @@ import rootReducer from './reducers'
export default function configureAppStore(preloadedState) {
const store = configureStore({
reducer: rootReducer,
middleware: [loggerMiddleware, ...getDefaultMiddleware()],
middleware: (getDefaultMiddleware) => getDefaultMiddleware().prepend(loggerMiddleware),
preloadedState,
enhancers: [monitorReducersEnhancer]
})
Expand Down

0 comments on commit 3d80cd2

Please sign in to comment.