Skip to content

Commit 87a1c5c

Browse files
authored
Add comment to makeStore
1 parent bf85553 commit 87a1c5c

File tree

1 file changed

+2
-0
lines changed
  • packages/cra-template-redux/template/src/app

1 file changed

+2
-0
lines changed

packages/cra-template-redux/template/src/app/store.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { quotesApiSlice } from "../features/quotes/quotesApiSlice"
77
// their `reducerPath`s, therefore we no longer need to call `combineReducers`.
88
const rootReducer = combineSlices(counterSlice, quotesApiSlice)
99

10+
// The store setup is wrapped in `makeStore` to allow reuse
11+
// when setting up tests that need the same store config
1012
export const makeStore = preloadedState => {
1113
const store = configureStore({
1214
reducer: rootReducer,

0 commit comments

Comments
 (0)