feathers-action-reducer
v1.2.1
Published
redux reducer for feathers service actions
Downloads
11
Maintainers
Readme
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 requiredString
describing the name of the feathers service (e.g. 'todos')config
: an requiredObject
config.update
: a requiredFunction
that implements an interface compatible toreact-addons-update
, such asupdate-object
ortcomb/lib/update
config.key
: an optionalString
that describes the default key (e.g. 'id')
returns a redux reducer Function
TODO
- [ ] keep track of action status (busy, pending, ...)
- [ ] handle errors