const resolvedEffects = Object.keys(effects).reduce((map, name) => {
        map[name] = (...payload) =>
          effects[name](resolvedActions, resolvedEffects, ...payload)
        return map
      }, {})