I have added the same SPFx web part to two different site pages. The web part contains links (a href) to both pages and some page related info collected from this.context.pageContext.
When I click on the link in one of the pages to the other page, pageContext does not update and the web part still shows the info related to the page I first visited.
Is it supposed to work this way and does anyone know how to force the web part pagecontext to update when linking between pages with the same web part?