We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
store.ts
1 parent 4aa79be commit 510c131Copy full SHA for 510c131
examples/publish-ci/react-native/src/app/store.ts
@@ -10,6 +10,8 @@ const rootReducer = combineSlices(counterSlice, quotesApiSlice)
10
// Infer the `RootState` type from the root reducer
11
export type RootState = ReturnType<typeof rootReducer>
12
13
+// The store setup is wrapped in `makeStore` to allow reuse
14
+// when setting up tests that need the same store config
15
export const makeStore = (preloadedState?: Partial<RootState>) => {
16
const store = configureStore({
17
reducer: rootReducer,
0 commit comments