Redux History
Connect the history api to redux. Redux History lets you sync redux with rackt history, giving you access to the current location object in your reducers, optionally including URL queries. It's meant to be a dead simple enhancement for redux, it will also work nicely with react-router.
Installation
npm install --save redux-history history
To enable Redux History, use connectHistory()
inside your main entry point:
;;;;; ; const store = ;const history = ;const unconnectHistory = ; ;
in your root reducer
;; const rootReducer = ;
Usage
// examples with:// with history.push, history.replace// with custom actions, custom reducers// with react-router
License
MIT