redux-vertical
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Redux-Vertical

Coverage Status

Build large Redux apps using vertically separated features.

Install

npm install --save redux-vertical

Usage

import { createTypes } from 'redux-vertical';

// we namespace all our types
// you no longer have to worry about action types clashing
export const namespace = 'app';
export const types = createTypes(
  // namespace will prefix all our types!
  namespace
  [
    'openModal',
    'handleClick',
    'updateEmailSettings',
  ],
);
// types will look like the following
// types = {
//   openModal: 'app.openModal',
//   handleClick: 'app.handleClick',
//   updateEmailSettings: 'app.updateEmailSettings'
// };

API

Comming soon

Prior Work

This project is a derivative of redux-actions with some additional API and some slight modifications to make those functions work exclusive of Symbol types. As such this library will not work with Symbol type actions.

Package Sidebar

Install

npm i redux-vertical

Weekly Downloads

102

Version

2.1.0

License

MIT

Unpacked Size

65.3 kB

Total Files

93

Last publish

Collaborators

  • berkeleytrue