# redux-chain-actions

> chain actions for Redux

Latest version **1.0.1** (published 2018-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-chain-actions
pnpm add redux-chain-actions
yarn add redux-chain-actions
bun add redux-chain-actions
```

## 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.0.1 |
| Published | 2018-05-07 |
| First published | 2018-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ruda |
| Maintainers | ruda |

## Links

- npm: https://www.npmjs.com/package/redux-chain-actions
- npm.io page: https://npm.io/package/redux-chain-actions

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [flux-standard-action](https://npm.io/package/flux-standard-action.md) ^2.0.2

## Recent versions

- 1.0.1 (latest) — 2018-05-07
- 1.0.0 — 2018-05-07

## README

#redux-chain-actions
redux-chain-actions is a middleware to help us to dispatch action one by one.

##Installation
```
npm install --save redux-chain-actions
```
##Usage
 Should add redux-chain-actions middleware when create store
 
 ```
export const first = (first) => ({
  type: 'first',
});

export const second = (second) => ({
  type: 'second',
});

export const chainAction = (params) => ({
  type: 'test',
  payload: [first, second],
});
```
When we dispatch chainAction, first and second action will be dispatched one by one.

##Note
- This middleware will only handle the action which follow FSA, so it's better to use redux-action library to create your action.
- The chain action should be action creator, this means it should be function, such as first and second.

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