@vslutov/router-middleware

0.1.3 • Public • Published

@vslutov/router-middleware

Build Status npm version Greenkeeper badge Coverage Status JavaScript Style Guide Commitizen friendly

Router middleware for connected-react-router compatible with redux-batch-middleware

Install

npm install @vslutov/router-middleware

Code example

Drop-in replacement for router middleware from connected-react-router

Before:

import { routerMiddleware } from 'connected-react-router'

After:

import { routerMiddleware } from '@vslutov/router-middleware'

Now you can dispatch a batch of actions with history methods:

store.dispatch([setSomeValues(value), push(someUrl)])

Package Sidebar

Install

npm i @vslutov/router-middleware

Weekly Downloads

2

Version

0.1.3

License

GPL-3.0-or-later

Unpacked Size

41.7 kB

Total Files

7

Last publish

Collaborators

  • vslutov