case ADD_CATEGORY_SUCCESS: return { ...state,categories:[...state.categories,action.payload] ,loading: true };