fix(react): nested router outlets will not reanimate entered views (#24672)

Resolves #24107
This commit is contained in:
Sean Perkins
2022-01-31 11:55:08 -05:00
committed by GitHub
parent 484de5074d
commit 43aa6c11f4
7 changed files with 94 additions and 84 deletions

View File

@ -1,3 +1,4 @@
import { componentOnReady } from '@ionic/core';
import React from 'react';
import { IonRouterOutletInner } from '../components/inner-proxies';
@ -24,9 +25,9 @@ export class OutletPageManager extends React.Component<OutletPageManagerProps> {
componentDidMount() {
if (this.ionRouterOutlet) {
setTimeout(() => {
componentOnReady(this.ionRouterOutlet, () => {
this.context.registerIonPage(this.ionRouterOutlet!, this.props.routeInfo!);
}, 25);
});
this.ionRouterOutlet.addEventListener(
'ionViewWillEnter',