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

Shell PopToRootAsync doesn't happen instantly - previous pages flash quickly. Only happens in NET 9 #26846

Open
Zack-G-I-T opened this issue Dec 27, 2024 · 0 comments · May be fixed by #26851
Open
Labels
t/bug Something isn't working

Comments

@Zack-G-I-T
Copy link

Description

When opening a few modal pages (in this example I added 10 with coloured backgrounds) and you call "await Shell.Current.Navigation.PopToRootAsync(false);" it will go to the root page, but will flash through all the previous pages very quickly.

This behaviour didn't occur in NET 8 and makes the app look bad when the user is seeing pages that they shouldn't - no matter how brief. I have attached some videos showing the difference in behaviour. It's not easy to spot as it happens so quick and these pages are very basic, but with more detailed pages it is more noticeable.

Note that this doesn't happen unless the pages are modal.
NET 9:
https://github.com/user-attachments/assets/04f28b48-cc4d-4aac-950b-3b678ef85117

NET 8:
https://github.com/user-attachments/assets/e2e3784f-2735-442c-9af6-6c31f9b29014

Steps to Reproduce

  1. Download repo and run in NET 9 (Android or iOS)
  2. Click the bottom button to go to last page (without animation)
  3. Click the button to go back to root without animation
  4. See brief flash of other pages.
  5. Switch to NET 8 - see behaviour not happening, it's much smoother

Link to public reproduction project repository

https://github.com/Zack-G-I-T/PopToRootIssue

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.100 SR10

Affected platforms

Android, iOS

Affected platform versions

No response

Did you find any workaround?

Not using modal pages

Relevant log output

@Zack-G-I-T Zack-G-I-T added the t/bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant