@vslutov/router-middleware
v0.1.3
Published
Router middleware for connected-react-router compatible with redux-batch-middleware
Downloads
3
Maintainers
Readme
@vslutov/router-middleware
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)])