The issue is when developing pages, with nested routes, the page transition got black
When I wrap the IonRouterOutlet with IonPage the transition works fine but when navigating to other page it got blank page. But after removing the IonPage the pages works find but when the page is refreshed it got messed up again
Here is the example code.
<>
<IonMenu contentId="dashboard-content" ref={menuRef}>
<IonHeader>
<IonToolbar>
<IonTitle>
<div className="ion-flex ion-align-items-center">
<IonAvatar style={{width: 40, height: 40}}>
<img src="./imgs/app-logo.jpeg"/>
</IonAvatar>
<IonText className="ion-padding-start">Juan Dela Cruz</IonText>
</div>
</IonTitle>
</IonToolbar>
</IonHeader>
<IonContent>
<IonList >
<IonItem lines="full" button onClick={() => hadnleNavigate('home')}>
<IonIcon icon={homeOutline} slot="start" ></IonIcon>
<IonLabel>Home</IonLabel>
</IonItem>
<IonItem lines="full" button onClick={() => hadnleNavigate('about')}>
<IonIcon icon={helpCircleOutline} slot="start" ></IonIcon>
<IonLabel>About</IonLabel>
</IonItem>
<IonItem lines="full" button onClick={handleLogout}>
<IonIcon icon={logOutOutline} slot="start" ></IonIcon>
<IonLabel>Logout</IonLabel>
</IonItem>
</IonList>
</IonContent>
</IonMenu>
<IonRouterOutlet id="dashboard-content">
<Route exac path={PATH + "/home"}>
<Home />
</Route>
<Route exac path={PATH + "/about"}>
<About />
</Route>
<Route exac path={PATH + "/404"}>
<PageNotFound />
</Route>
<Route exact path={PATH}>
<Redirect to={PATH + "/home"}/>
</Route>
<Route render={() => <Redirect to={PATH + '/404'}/>}/>
</IonRouterOutlet>
</>
- Ionic version 7
- React