I am creating a React app with react router. In order to redirect the router from inside utility modules I have created a custom browser history object. Pushing history to the c