You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
My application starts with the login screen without the side menu being shown. After a successful login, the menu should appear. At the AppComponent level, I check the token, and if it's not set, I redirect to LoginComponent. At login component I try to hide the menu with MenuController, inside of the ionViewDidEnter lifecycle method.
So the menu doesn't hide on this way:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic Info
Describe the Bug
My application starts with the login screen without the side menu being shown. After a successful login, the menu should appear. At the AppComponent level, I check the token, and if it's not set, I redirect to LoginComponent. At login component I try to hide the menu with MenuController, inside of the
ionViewDidEnter
lifecycle method.So the menu doesn't hide on this way:
but hides if I put 25ms of timeout
I also tried the
ionViewWillEnter
but I have to increase the timeout obviously.Steps to Reproduce
Steps to reproduce the behavior:
Expected Behavior
The menu should not be shown when you hide it with MenuController on initial start of the application.
The text was updated successfully, but these errors were encountered: