Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, createElement } from 'react'
import { connect as connectRedux } from 'react-redux'
import { bindActionCreators as bindDispatchActionCreators } from 'redux'
import createCid from 'incremental-id'
import { is, pipe, compose, merge, map, partialRight } from 'ramda'
import { is, pipe, compose, merge, map, mapObjIndexed, partialRight } from 'ramda'

const { isArray } = Array
const isFunction = is(Function)
Expand All @@ -17,7 +17,10 @@ export function connect (options) {
return compose(reduxConnector, feathersConnector)
}

const bindCidToActionCreators = map(action => {
const bindCidToActionCreators = mapObjIndexed((action, name) => {
// don't bind cid to complete action
if (name === 'complete') return action

return (...args) => {
const cid = createCid()
action(cid, ...args)
Expand Down