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