enhance-reducer
v0.0.3
Published
A collection of enhancer functions for adding repeated functionality to reducers
Downloads
7
Readme
Enhance Reducer
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
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