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

Add new PreventDuplicateHandlingMode (popUntilTargetRoute) #3264

Open
linpengteng opened this issue Nov 22, 2024 · 0 comments
Open

Add new PreventDuplicateHandlingMode (popUntilTargetRoute) #3264

linpengteng opened this issue Nov 22, 2024 · 0 comments

Comments

@linpengteng
Copy link

Now PreventDuplicateHandlingMode:

Mode Description Scenarios
PopUntilOriginalRoute Return to the original route through the navigation stack Return to a fixed page (such as the login page)
DoNothing Ignore the navigation request and do nothing. Prevent repeated rapid clicks from triggering multiple navigations.
ReorderRoutes (recommended) Move existing pages to the top of the stack instead of creating them repeatedly. Ensure page uniqueness, optimize performance, and simplify the stack.

Add new popUntilTargetRoute (Similar to Get.offNamedUntil)

Mode Description Scenarios
popUntilTargetRoute Pop pages from the stack until the target page is found. Ensure the consistency of the order of routes in the routing stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant