docs: function allListeners(state = [], { type, payload }) {
    switch (type) {
      case actionTypes.SET_LISTENER:
        return [...state, payload.name];
      case actionTypes.UNSET_LISTENER:
        return state.filter(name => name !== payload.name);
      default:
        return state;
    }
  }