File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -880,27 +880,13 @@ import * as actions from './actions';
880
880
import { ADD , CHANGE_FILTER , TOGGLE } from ' ./constants' ;
881
881
882
882
export type TodosState = {
883
- readonly isFetching: boolean ;
884
- readonly errorMessage : string | null ;
885
883
readonly todos: Todo [];
886
884
readonly todosFilter : TodosFilter ;
887
885
};
888
886
889
887
export type TodosAction = ActionType < typeof actions > ;
890
888
891
889
export default combineReducers <TodosState , TodosAction >({
892
- isFetching : (state = false , action ) => {
893
- switch (action .type ) {
894
- default :
895
- return state ;
896
- }
897
- },
898
- errorMessage : (state = null , action ) => {
899
- switch (action .type ) {
900
- default :
901
- return state ;
902
- }
903
- },
904
890
todos : (state = [], action ) => {
905
891
switch (action .type ) {
906
892
case ADD :
You can’t perform that action at this time.
0 commit comments