forked from paralect/react-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreducer.js
More file actions
26 lines (18 loc) · 669 Bytes
/
reducer.js
File metadata and controls
26 lines (18 loc) · 669 Bytes
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
26
// @flow
import { combineReducers } from 'redux';
import type { CombinedReducer } from 'redux';
import type { StateType, ActionType } from './types';
import toast from './toast/toast.reducer';
import type { ReducerType as ToastReducerType } from './toast/toast.types';
import user from './user/user.reducer';
import type { ReducerType as UserReducerType } from './user/user.types';
type ReducersType = {
user: UserReducerType,
toast: ToastReducerType,
};
const reducers: ReducersType = {
user,
toast,
};
const combinedReducer: CombinedReducer<StateType, ActionType> = combineReducers(reducers);
export default combinedReducer;