Ionic super template sidemenu issue

Hello, I have a bug with sidemenu in menu which is in page folder.
I wanted to use menu module.

so I removed menu tag from app.component template.

it works fine until using below code.

I’m using firebase auth so in app.component It checks auth from firebase so decide a root page.
when I develop it refresh page and then menu icon is hidden.
for example.

  1. working on http://localhost:8100/#/menu/content
  2. if refresh page
  3. ion-nav which is app.component.ts template is load over menu.html
  4. so menu button is hidden
    How can I solve this isuue?

Please Help me.

platform.ready().then(() => {
const authObserver = this.afAuth.authState.subscribe(user => {
if(user){
   this.rootPage = 'MenuPage';
}else{
this.rootPage = 'WelcomePage';
}
});
}