Using React Router and History
This post is not a tutorial but describes one particular use-case and the problems that I met along the way.
In a nutshell, we use React Router in our app and we want to listen to location changes to apply some specific actions in response. There are…