Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

ahdinosaur/feathers-action-reducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published