Ion router outlet caching issue

Hi, I’m using ionic react, my application has two routes like “/city”, “/city/:id” on city route there are list of cities and clicking one of them redirects to /city/:id route now the problem is if user is on /city/1 and then goes to /city page through menu ( not back clicking back button ) and then goes to another city like /city/2 then ion router outlet still showing /city/1 data. How can I prevent this caching of page?

Code? Because what you are doing should work