redux-json-middleware

1.1.4 • Public • Published

REDUX-JSON-MIDDLEWARE is a middle ware for processing json objects that can be used to process a json object before being passed to the reducer as you can access proccessed json object inside the reducer through the action data property .


To use it you should attach following properties with the action object passed to the dispatch :

  • payload : holds json object that you want to proceed and also it can be a promise that resolve a json object
  • jsonProperty : holds the name of the property (in the resolved object ) that holds json object and that in case of passing promise to the payload
  • filter : Arrays that holds properties names (name should start from the root) that you want to include or execlude from the json object

This middleware has three formats which are cjs,umd and es .
For more information read this article and also Please review examples to get how it is used

Package Sidebar

Install

npm i redux-json-middleware

Weekly Downloads

1

Version

1.1.4

License

ISC

Unpacked Size

25.9 kB

Total Files

23

Last publish

Collaborators

  • mregydev