I'm using CRA (create-react-app) and react-router.
However, I also use an event-driven system to manage states and messaging.
Now I need to change URL somewhere outside react function components. Thus I can't use useHistory.
Is there a way to change the URL/Route and let react router know about it?