Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Parent outlet flickers when using nested router outlet #24666

Closed
4 of 6 tasks
sean-perkins opened this issue Jan 27, 2022 · 1 comment
Closed
4 of 6 tasks

bug: Parent outlet flickers when using nested router outlet #24666

sean-perkins opened this issue Jan 27, 2022 · 1 comment
Labels
package: react @ionic/react package type: bug a confirmed bug report

Comments

@sean-perkins
Copy link
Contributor

sean-perkins commented Jan 27, 2022

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

When using nested router outlets, the non-active outlet can flicker and render before the desired outlet is mounted.

For example with:

<IonApp>
    <IonReactRouter>
      <Route path="/" component={Main} />
      <Route path="/overlay-hooks" component={OverlayHooks} />
      <Route path="/overlay-components" component={OverlayComponents} />
      <Route path="/tabs" component={Tabs} />
    </IonReactRouter>
  </IonApp>

When navigating directly to /tabs, Main will render for a brief moment and flicker before the Tabs component with it's own router outlet is rendered.

Kapture.2022-01-26.at.19.45.15.mp4

This is a separate issue from the flickering issue when navigating between tabs.

Expected Behavior

When navigating directly to /tabs, the Main component route should never display. The Tabs component should render without a flicker.

Steps to Reproduce

Outlined above.

Code Reproduction URL

No response

Ionic Info

No response

Additional Information

No response

@ionitron-bot
Copy link

ionitron-bot bot commented Feb 26, 2022

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Feb 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: react @ionic/react package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

1 participant