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

Change navigator popUntil to exclusive #1160

Merged
merged 6 commits into from
Jan 29, 2024

Conversation

vulpeszerda
Copy link
Contributor

As mentioned in #1123, navigator's popUntil extension worked as inclusively.
Because backstack's popUntil works exclusively, changed navigator's popUntil to work as exclusively.

For this change, added peek method to navigator.

Side-effects that needed to be consider

  • changed to throw exception when peek called in FakeNavigator.
  • changed DispatchingOverlayNavigator to receive current screen as argument and return it when peek called.

Copy link

Thanks for the contribution! Unfortunately we can't verify the commit author(s): roy.tk <r***@k***.com>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce Inc. Contributor License Agreement and this Pull Request will be revalidated.

@vulpeszerda vulpeszerda force-pushed the navigator-popuntil-exclusive branch from c67e269 to aa0d58d Compare January 29, 2024 00:09
Copy link

Thanks for the contribution! Before we can merge this, we need @vulpeszerda to sign the Salesforce Inc. Contributor License Agreement.

Copy link
Collaborator

@ZacSweers ZacSweers left a comment

Choose a reason for hiding this comment

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

Just a few nits!

Copy link
Collaborator

@ZacSweers ZacSweers left a comment

Choose a reason for hiding this comment

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

Thanks!

@ZacSweers ZacSweers added this pull request to the merge queue Jan 29, 2024
Merged via the queue into slackhq:main with commit e72f992 Jan 29, 2024
3 checks passed
@vulpeszerda vulpeszerda deleted the navigator-popuntil-exclusive branch January 30, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants