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

[Android & iOS] PopToRootAsync for modal pages - improvements #26851

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Dec 27, 2024

Issues Fixed

Fixes #26846

Before After
Screen.Recording.2024-12-27.at.20.46.44.mov
Screen.Recording.2024-12-27.at.20.45.08.mov

@kubaflo kubaflo requested a review from a team as a code owner December 27, 2024 23:49
@kubaflo kubaflo requested review from rmarinho and PureWeen December 27, 2024 23:49
Copy link
Contributor

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Dec 27, 2024
@kubaflo
Copy link
Contributor Author

kubaflo commented Dec 27, 2024

Hi @pictos what do you think about this?

@kubaflo kubaflo force-pushed the Shell-PopToRootAsync-doesn't-happen-instantly branch from ab33933 to 09c6260 Compare December 28, 2024 00:16
@kubaflo kubaflo changed the title [Android] PopToRootAsync for modal pages - improvements [Android & iOS] PopToRootAsync for modal pages - improvements Dec 28, 2024
@@ -28,7 +28,7 @@ internal partial class ModalNavigationManager
AAnimation? _dismissAnimation;
bool _platformActivated;

readonly Stack<string> _modals = [];
readonly List<string> _modals = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks good to me. Just a heads up, Lists aren't good to remove at start, since it will cause the whole collection to reorganize. So, if in the future, we see some scenario where this can cause a bottleneck, we can change this to other collection.

I doubt it will happen but just in case

@gabsamples6
Copy link

We are affected by this as well any estimate when this will be merged ? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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