DEV Community

Discussion on: async actions in redux

Collapse
 
hemanth profile image
hemanth.hm

Yeah, rather:

 case 'FETCHING_COMIC':
      return {
        ...state,
        fetching: true,
        comic: action.comic
      }
const initialState = {
  fetching: false,
  error: false,
  comic: null
}

What say?