Ionic 5 Router Issue

Hello,

Navigation from (onclick) event using this.router.navigateByUrl(‘login’); changes route, but component not being rendered. After second click on any part of screen, component is rendered.

thanks

If you are using react , check if

<IonPage>

is rendered twice

Hi, thanks for your response. I am using angular, not react

Could you share a little bit of code? Are you using (onclick) or just (click) does the function get called?