code: function fetchHubs () {
    return (dispatch) => {
      dispatch(requestHubs())
      ipcAdapter.getHubs()
        .then((hubs) => dispatch(receiveHubs(hubs)))
    }
  }
docs: function failedHubs (error) { return { type: FETCH_HUBS_FAILED, error: error } }