I currently don’t have time to set it up, but it’s super easy. As the article suggested:
connected-react-routerby following the setup docs here https://github.com/supasate/connected-react-router
- Dispatch the
replaceaction. You can find examples of how to do it (depending on which redux setup you have) here https://github.com/supasate/connected-react-router/blob/master/FAQ.md#how-to-navigate-with-redux-action. The examples refer to the
pushaction, but you can do exactly the same for the
replaceaction. The arguments passed to
replaceare the same as the ones shown in the article.
Hope that helps!