# redux-clear

> ## Instalation

Latest version **1.1.3** (published 2019-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-clear
pnpm add redux-clear
yarn add redux-clear
bun add redux-clear
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2019-04-17 |
| First published | 2019-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Igor Kamyshev |
| Maintainers | igor.kamyshev |

## Links

- npm: https://www.npmjs.com/package/redux-clear
- Repository: https://github.com/igorkamyshev/redux-clear
- Homepage: https://github.com/igorkamyshev/redux-clear#readme
- Issues: https://github.com/igorkamyshev/redux-clear/issues
- npm.io page: https://npm.io/package/redux-clear

## Dependencies (2)

- [nanoid](https://npm.io/package/nanoid.md) ^2.0.1
- [tsoption](https://npm.io/package/tsoption.md) ^0.7.0

## Recent versions

- 1.1.3 (latest) — 2019-04-17
- 1.1.2 — 2019-03-07
- 1.1.1 — 2019-03-07
- 1.1.0 — 2019-03-07
- 1.0.3 — 2019-02-11
- 1.0.2 — 2019-02-07
- 1.0.0 — 2019-02-07

## README

# redux-clear

## Instalation

`yarn add redux-clear`

## Usage 

```ts

import { createClearRedux, ClearAction } from 'redux-clear'

type State = number
interface Actions {
  addAndMult: ClearAction<[number, number]>
}

const { actions, reducer } = createClearRedux<State, Actions>(
  {
    addAndMult: state => (amount, param) => state + amount * param,
  },
  0,
)

actions.addAndMult(12, 2) // just didpatch it
reducer // just pass it to `combineReducers`

```

## Easy fetching

```ts

import { createClearReduxWithFetching, ClearAction } from 'redux-clear'

// TODO: add example
```

---
_Source: https://npm.io/package/redux-clear · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
