-
Notifications
You must be signed in to change notification settings - Fork 82
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
Change navigator popUntil to exclusive #1160
Conversation
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. |
c67e269
to
aa0d58d
Compare
Thanks for the contribution! Before we can merge this, we need @vulpeszerda to sign the Salesforce Inc. Contributor License Agreement. |
There was a problem hiding this 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!
circuit-foundation/src/commonMain/kotlin/com/slack/circuit/foundation/CircuitContent.kt
Outdated
Show resolved
Hide resolved
circuit-test/src/commonMain/kotlin/com/slack/circuit/test/FakeNavigator.kt
Show resolved
Hide resolved
circuit-runtime/src/commonMain/kotlin/com/slack/circuit/runtime/Navigator.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
As mentioned in #1123, navigator's
popUntil
extension worked as inclusively.Because backstack's
popUntil
works exclusively, changed navigator'spopUntil
to work as exclusively.For this change, added
peek
method to navigator.Side-effects that needed to be consider
FakeNavigator
.DispatchingOverlayNavigator
to receive current screen as argument and return it when peek called.