Hey Stephanie,

I currently don’t have time to set it up, but it’s super easy. As the article suggested:

  1. Install connected-react-router by following the setup docs here https://github.com/supasate/connected-react-router
  2. Dispatch the replace action. 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 push action, but you can do exactly the same for the replace action. The arguments passed to replace are the same as the ones shown in the article.

Hope that helps!

Front-end ReactJS Developer — https://aggelos.dev

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store