Skip to content

Commit 510c131

Browse files
committed
Copy store.ts from react-native-template-redux-typescript
1 parent 4aa79be commit 510c131

File tree

1 file changed

+2
-0
lines changed
  • examples/publish-ci/react-native/src/app

1 file changed

+2
-0
lines changed

examples/publish-ci/react-native/src/app/store.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const rootReducer = combineSlices(counterSlice, quotesApiSlice)
1010
// Infer the `RootState` type from the root reducer
1111
export type RootState = ReturnType<typeof rootReducer>
1212

13+
// The store setup is wrapped in `makeStore` to allow reuse
14+
// when setting up tests that need the same store config
1315
export const makeStore = (preloadedState?: Partial<RootState>) => {
1416
const store = configureStore({
1517
reducer: rootReducer,

0 commit comments

Comments
 (0)