I have a react app that I managed to shove into a chrome extension with content_scripts
. It's basically an overlay on the page that shows contextually relevant tools based on the route. The problem is that the existing page content links don't cause react-router in my extension to update its history when they are clicked. So when the user changes pages using the actual website links my app doesn't show the right tools. Only when they hit refresh on the proper route.
Is there a way to get react-router to be aware and update it's history when users click links on the existing page content?