enhance-reducer
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Enhance Reducer

CircleCI npm version

a group of utility functions for composing additional functionality into a reducer. Available for JavaScript and TypeScript.

Getting Started

# Using npm
npm install --save enhance-reducer

#Using Yarn
yarn add enhance-reducer

All functions are available on the top level import.

import { pipe, withLoadable, withResetState /* ... */ } from 'enhance-reducer';

enhance-reducer can be used to...

  • Handle loading flags for async code
  • Handle setting, add to, updating, deleting collections
  • Resetting a reducer state back to it's initial state
  • Nest reducers

API Docs

Read them here

Contributing

# Fork and clone this repo
git clone https://github.com/<GH_USERNAME>/enhance-reducer.git

# cd into folder
cd enhance-reducer

# Install dependencies
yarn install # or npm install

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i enhance-reducer

    Weekly Downloads

    0

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    14.2 kB

    Total Files

    26

    Last publish

    Collaborators

    • shaunlloyd