There was an error while loading. Please reload this page.
1 parent bf85553 commit 87a1c5cCopy full SHA for 87a1c5c
packages/cra-template-redux/template/src/app/store.js
@@ -7,6 +7,8 @@ import { quotesApiSlice } from "../features/quotes/quotesApiSlice"
7
// their `reducerPath`s, therefore we no longer need to call `combineReducers`.
8
const rootReducer = combineSlices(counterSlice, quotesApiSlice)
9
10
+// The store setup is wrapped in `makeStore` to allow reuse
11
+// when setting up tests that need the same store config
12
export const makeStore = preloadedState => {
13
const store = configureStore({
14
reducer: rootReducer,
0 commit comments