0.0.3 • Published 5 years ago

enhance-reducer v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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