@rolilink/redux-network
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

network-redux

A group of actions, reducers and selectors to handle networking on redux. Uses redux-toolkit.

installation

yarn add @rolilink/redux-network

or

npm add @rolilink/redux-network

usage

To generate the redux duck you will need to require makeReduxNetwork:

const { makeReduxNetwork } = require('@rolilink/redux-network');

makeReducer('organization');

This will return a duck object like this

{
  actions, // a object with the actions returned by redux-toolkit
  reducer, // the reducer function
  selectors, // an object with the selectors returned by redux-toolkit
  caseReducers, // an object with the case reducers returned by redux-toolkit
}

Readme

Keywords

none

Package Sidebar

Install

npm i @rolilink/redux-network

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

14.6 kB

Total Files

12

Last publish

Collaborators

  • rolilink