Enable build support by adding .onedev-buildspec.yml
| .github | Loading last commit info... | |
| src | ||
| test | ||
| .editorconfig | ||
| .gitignore | ||
| .npmignore | ||
| .travis.yml | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| package.json | ||
| rollup.config.js |
README.md
@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)])