This repository was archived by the owner on Dec 9, 2021. It is now read-only.
File tree 6 files changed +10
-10
lines changed
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class LoadingReducer {
8
8
isLoading : false ,
9
9
} ;
10
10
11
- public static reduce ( state : ILoadingReducerState = LoadingReducer . _initialState , action : IAction < any > ) : ILoadingReducerState {
11
+ public static reducer ( state : ILoadingReducerState = LoadingReducer . _initialState , action : IAction < any > ) : ILoadingReducerState {
12
12
switch ( action . type ) {
13
13
case LoadingAction . SET_LOADING :
14
14
return LoadingReducer . _setLoading ( state , action ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class MetaReducer {
9
9
description : '' ,
10
10
} ;
11
11
12
- public static reduce ( state : IMetaReducerState = MetaReducer . _initialState , action : IAction < any > ) : IMetaReducerState {
12
+ public static reducer ( state : IMetaReducerState = MetaReducer . _initialState , action : IAction < any > ) : IMetaReducerState {
13
13
switch ( action . type ) {
14
14
case MetaAction . SET_META :
15
15
return MetaReducer . _setMeta ( state , action ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class ModalReducer {
9
9
modalList : [ ] ,
10
10
} ;
11
11
12
- public static reduce ( state : IModalReducerState = ModalReducer . _initialState , action : IAction < any > ) : IModalReducerState {
12
+ public static reducer ( state : IModalReducerState = ModalReducer . _initialState , action : IAction < any > ) : IModalReducerState {
13
13
switch ( action . type ) {
14
14
case ModalAction . ADD_MODAL :
15
15
return ModalReducer . _addModal ( state , action ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class RenderReducer {
7
7
isServerSide : true ,
8
8
} ;
9
9
10
- public static reduce ( state : IRenderReducerState = RenderReducer . _initialState , action : IAction < IRenderReducerState > ) : IRenderReducerState {
10
+ public static reducer ( state : IRenderReducerState = RenderReducer . _initialState , action : IAction < IRenderReducerState > ) : IRenderReducerState {
11
11
return state ;
12
12
}
13
13
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ import ModalReducer from './modal/ModalReducer';
10
10
11
11
const reducers : IStore = {
12
12
form : formReducer ,
13
- loadingReducer : LoadingReducer . reduce as any ,
14
- metaReducer : MetaReducer . reduce as any ,
15
- modalReducer : ModalReducer . reduce as any ,
16
- renderReducer : RenderReducer . reduce as any ,
13
+ loadingReducer : LoadingReducer . reducer as any ,
14
+ metaReducer : MetaReducer . reducer as any ,
15
+ modalReducer : ModalReducer . reducer as any ,
16
+ renderReducer : RenderReducer . reducer as any ,
17
17
router : routerReducer ,
18
- userReducer : UserReducer . reduce as any ,
18
+ userReducer : UserReducer . reducer as any ,
19
19
} ;
20
20
21
21
export default combineReducers < IStore > ( reducers as any ) as Reducer < IStore > ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class UserReducer {
24
24
} ,
25
25
} ;
26
26
27
- public static reduce ( state : IUserReducerState = UserReducer . _initialState , action : IAction < any > ) : IUserReducerState {
27
+ public static reducer ( state : IUserReducerState = UserReducer . _initialState , action : IAction < any > ) : IUserReducerState {
28
28
switch ( action . type ) {
29
29
case UserAction . LOAD_USER_SUCCESS :
30
30
return UserReducer . _loadUser ( state , action ) ;
You can’t perform that action at this time.
0 commit comments