1.2.1 • Published 10 years ago
feathers-action-reducer v1.2.1
feathers-action-reducer
create a redux reducer to handle feathers actions
install
with npm:
npm install --save feathers-action-reducerapi
createReducer(serviceName, config)
given the following arguments:
serviceName: a requiredStringdescribing the name of the feathers service (e.g. 'todos')config: an requiredObjectconfig.update: a requiredFunctionthat implements an interface compatible toreact-addons-update, such asupdate-objectortcomb/lib/updateconfig.key: an optionalStringthat describes the default key (e.g. 'id')
returns a redux reducer Function
TODO
- keep track of action status (busy, pending, ...)
- handle errors