Allow listening to route changes on BrowserRouter constructor