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

fix(lib/get_navigation): Improve preventDuplicates and preventDuplicateHandlingMode in navigator2 #3262

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

linpengteng
Copy link

@linpengteng linpengteng commented Nov 22, 2024

  1. support merge preventDuplicateHandlingMode by copyWith (GetPage)

  2. add and using preventDuplicates option of Getx5 Navigator2 API

    • to、off、offNamed、offUntil、backAndtoNamed、
    • toNamed、offNamedUntil、toNamedAndOffUntil
  3. merge preventDuplicates option in _configureRouterDecoder API

  4. execute _activePages.add(res) when route.preventDuplicates == false

Pre-launch Checklist

  • All existing and new tests are passing.

@linpengteng
Copy link
Author

linpengteng commented Nov 22, 2024

fix: #3261

1. using preventDuplicates option of Get Navigation
    - to、off、offNamed、offUntil、backAndtoNamed、
    - toNamed、offNamedUntil、toNamedAndOffUntil
2.  merge preventDuplicates option in _configureRouterDecoder API
3.  execute _activePages.add(res) when route.preventDuplicates == false
@linpengteng linpengteng changed the title fix(lib/get_navigation): support preventDuplicateHandlingMode in copyWith (GetPage) fix(lib/get_navigation): Improve preventDuplicates and preventDuplicateHandlingMode in navigator2 Nov 22, 2024
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

Successfully merging this pull request may close these issues.

1 participant