0.1.3 • Published 6 years ago
@vslutov/router-middleware v0.1.3
@vslutov/router-middleware
Router middleware for connected-react-router compatible with redux-batch-middleware
Install
npm install @vslutov/router-middlewareCode 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)])