I've encountered an issue with a button I created that directs the user to an overview page using a parameter called "Id". The problem I'm facing is that after selecting a user and then going back to select a different user, it still retains the original parameter from the first selection. Could this be due to caching, and if so, what steps can I take to resolve it?
<button mat-button class="button" [routerLink]="'/user/overview'" [queryParams]=" { Id: user?.Id }">
Show User
</button>
Although the URL displays the correct parameter, the component remains unchanged.