Skip to content

Commit

Permalink
Add context for getDefaultMiddleware
Browse files Browse the repository at this point in the history
The function name itself isn't very informative. Add more info from the
doc page¹.

¹ https://redux-toolkit.js.org/api/getDefaultMiddleware#included-default-middleware
  • Loading branch information
victorlin committed Oct 14, 2023
1 parent fd760cd commit de9f63d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const middleware = [
const store = configureStore({
reducer: rootReducer,
middleware: (getDefaultMiddleware) =>
// This adds the thunk middleware, and for development builds, other useful checks.
getDefaultMiddleware({
// TODO: Go through reducers and see why the state is not immutable nor serializable.
// These were not checked prior to the adoption of Redux Toolkit, and were not
Expand Down

0 comments on commit de9f63d

Please sign in to comment.