# @k-ramel/driver-redux-little-router

> redux-little-router driver for k-ramel

Latest version **1.2.0** (published 2019-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @k-ramel/driver-redux-little-router
pnpm add @k-ramel/driver-redux-little-router
yarn add @k-ramel/driver-redux-little-router
bun add @k-ramel/driver-redux-little-router
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-01-10 |
| First published | 2018-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Benjamin PETETOT |
| Maintainers | fabienjuif, guillaumecrespel |

## Links

- npm: https://www.npmjs.com/package/@k-ramel/driver-redux-little-router
- Repository: https://github.com/alakarteio/k-ramel/tree/master/packages/drivers/redux-little-router
- npm.io page: https://npm.io/package/@k-ramel/driver-redux-little-router

## Recent versions

- 1.2.0 (latest) — 2019-01-10
- 1.0.0-alpha.0 (next) — 2018-10-15
- 1.1.0 — 2019-01-03
- 1.0.2 — 2018-12-09
- 1.0.0 — 2018-10-15
- 0.15.1 — 2018-08-13
- 0.14.0 — 2018-08-06
- 0.13.2 — 2018-07-13
- 0.13.1 — 2018-07-12
- 0.13.0 — 2018-07-11
- 0.12.0 — 2018-04-06
- 0.11.0 — 2018-03-13
- 0.10.0 — 2018-02-20
- 0.9.0 — 2018-02-19

## README

# @k-ramel/driver-redux-little-router
> redux-little-router driver for k-ramel

 - Main repository: [k-ramel](https://github.com/alakarteio/k-ramel)

## Examples
In a reaction (See main documentation about listeners/reactions)

**Declare it in your store :**
```js
import driver from '@k-ramel/driver-redux-little-router'

const router = driver({ routes }, state => state.router, 'router')

createStore(
  {
    // your usual definition
  },
  {
    drivers: { router },
  },
)
```

**In your reaction :**
```js
export const onUserLoggedIn = (store, action, drivers) => {
  const { router } = drivers
  // get userId in route params
  const userId = router.getRouteParam('userId')
  // dispatch push action to go to the new route
  router.push(`/user/${userId}`)
}
```

---
_Source: https://npm.io/package/@k-ramel/driver-redux-little-router · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
