# redux-loading

> Loading control with Redux

Latest version **1.0.2** (published 2016-03-31) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2016-03-31 |
| First published | 2016-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Reinaldo Schiehll |
| Maintainers | schiehll |
| Keywords | redux, loading, redux-loading |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2016-03-31
- 1.0.1 — 2016-03-27
- 1.0.0 — 2016-03-27

## README

# redux-loading 

> Loading control with Redux

[![travis build](https://img.shields.io/travis/schiehll/redux-loading.svg?style=flat-square)](https://travis-ci.org/schiehll/redux-loading)
[![Coveralls branch](https://img.shields.io/coveralls/schiehll/redux-loading/master.svg?style=flat-square)](https://coveralls.io/github/schiehll/redux-loading?branch=master)
[![version](https://img.shields.io/npm/v/redux-loading.svg?style=flat-square)](http://npm.im/redux-loading)
[![MIT License](https://img.shields.io/npm/l/redux-loading.svg?style=flat-square)](http://opensource.org/licenses/MIT)

## Example

```js
import {createStore, combineReducers, applyMiddleware} from 'redux'
import {loadingReducer, loadingMiddleware} from 'redux-loading'

const store = createStore(
  combineReducers({
    loading: loadingReducer
  }), 
  applyMiddleware(loadingMiddleware)
)

let action = {
  type: 'SOME_ACTION',
  meta: {
    loading: true
  }
}

store.dispatch(action)

let state = store.getState()
//state = {loading: {pending: 1, done: false}}

action = {
  type: 'SOME_OTHER_ACTION',
  meta: {
    loading: false
  }
}

store.dispatch(action)

state = store.getState()
//state = {loading: {pending: 0, done: true}}
```

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