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

[Feature] Advanced navigation method: ResetStackAndPush #12

Closed
BurkusCat opened this issue Oct 2, 2023 · 0 comments
Closed

[Feature] Advanced navigation method: ResetStackAndPush #12

BurkusCat opened this issue Oct 2, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@BurkusCat
Copy link
Owner

Is your feature request related to a problem? Please describe.
This will be the foundation of absolute navigation needed for #1. This would be a method that would clear any pages I already have and push a new page on top. An example might be when you are finishing a registration/login flow and want to move to the main part of an application.

Describe the solution you'd like
A new method that allows for absolute navigation.

Describe alternatives you've considered
N/A

Proposed APIs
If possible, try to propose how the API might look. For example:

// INavigationService
Task ResetStackAndPush<T>()
            where T : Page

Task ResetStackAndPush<T>(NavigationParameters parameters)
            where T : Page

Additional context
Implementation thoughts:

  • Should OnNavigatedFrom be called for all pages that were removed?
    • What does Shell do?
    • Only the top page?
    • If all pages, what order should OnNavigatedFrom be called for them all?
  • It is probably a good idea to have an internal ResetStack method that this new public method would use
@BurkusCat BurkusCat added the enhancement New feature or request label Oct 2, 2023
@BurkusCat BurkusCat self-assigned this Oct 3, 2023
@BurkusCat BurkusCat added this to the MVP milestone Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant