# mantra-redux

> Redux middleware for Mantra

Latest version **1.0.5** (published 2016-06-29) · MIT license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2016-06-29 |
| First published | 2016-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | sammkj |

## Links

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

## Dependencies (1)

- [babel-runtime](https://npm.io/package/babel-runtime.md) 6.x.x

## Recent versions

- 1.0.5 (latest) — 2016-06-29
- 1.0.4 — 2016-06-21
- 1.0.3 — 2016-06-08
- 1.0.2 — 2016-06-08
- 1.0.1 — 2016-06-08
- 1.0.0 — 2016-06-08

## README

# Mantra Redux Middleware

## Installation

```
npm install --save mantra-redux mantra-plus
```

## Basic Usage

```
import redux from 'mantra-redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';

const logger = createLogger();
const middlewares = [
  thunk,
  logger,
  Client.middleware(),
];

// create a Mantra app
const app = createApp(context);

// load middlewares before loading module
app.loadMiddlewares([
  redux({
    reducers: {
      apollo: Client.reducer(),
    },
    middlewares,
  }),
]);

// load all modules
app.loadModule(coreModule);

// initialize app
app.init();
```

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