0.1.3 • Published 5 years ago

@vslutov/router-middleware v0.1.3

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
5 years ago

@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)])