-
Notifications
You must be signed in to change notification settings - Fork 0
/
store.ts
25 lines (22 loc) · 958 Bytes
/
store.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { configureStore } from '@reduxjs/toolkit';
import investorReducer from './slices/investorSlice';
import reportsReducer from './slices/docsAndReportsSlice';
import investmentReducer from './slices/investmentSlice';
import roiValueReducer from './slices/roiValueSlice';
import fundsPerformanceReducer from './slices/fundPerformanceSlice';
import businessNewsReducer from './slices/businessNewsSlice';
const store = configureStore({
reducer: {
investor: investorReducer,
reports: reportsReducer,
investments: investmentReducer,
roivalue: roiValueReducer,
fundPerformance: fundsPerformanceReducer,
businessNews: businessNewsReducer,
},
});
// Infer the `RootState` and `AppDispatch` types from the store itself
export type RootState = ReturnType<typeof store.getState>;
// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}
export type AppDispatch = typeof store.dispatch;
export default store;