React web app issue after migrating to ionic react

I have a react app using create react app and css that I migrated to Ionic react. Everything is working fine except when I logout and login again some pages need to refresh before it works correctly. I am using react v17.0.2 and react-router-dom v5.3.0 with ionic react v8.6.5.
I am using react-router-dom Link for navigation

1 Like

How are you handling log in and lo out? If you’re using cookies, it may be that the cookie is not getting cleared properly; I have had issues where capacitor doesn’t clear the cookie correctly depending on the browser.