1.2.1 • Published 8 years ago

feathers-action-reducer v1.2.1

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

feathers-action-reducer

create a redux reducer to handle feathers actions

install

with npm:

npm install --save feathers-action-reducer

api

createReducer(serviceName, config)

given the following arguments:

  • serviceName: a required String describing the name of the feathers service (e.g. 'todos')
  • config: an required Object
    • config.update: a required Function that implements an interface compatible to react-addons-update, such as update-object or tcomb/lib/update
    • config.key: an optional String that describes the default key (e.g. 'id')

returns a redux reducer Function

TODO

  • keep track of action status (busy, pending, ...)
  • handle errors