Repository navigation
Drop the shop the Shops tab saved when the shopkeeper changes - #95
Merged
Merged
Conversation
After signing out and in, the Shops tab brought back the shop detail it saved when it was left: the previous shopkeeper's shop, answered 404. Navigation keeps a saved back stack under the destination popped up to and does not replace it on a later save, so AuthRoutingEffect clears the tab's saved screens with the Shops graph off the signed-in screens. Ported from MyTurnTagCreator-Android, where it was found on a real device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found in MyTurnTag's 2.2.0 smoke test on a real device (MyTurnTagCreator-Android #164, same fix): after signing out and in, opening Settings and coming back to Shops brought back the previous shopkeeper's shop detail, answered 404. (No organization switching here.)
AuthRoutingEffect: off the signed-in screens,clearBackStack(ShopBaseRoute).Cause: Navigation maps a non-inclusive
popUpTo(start) { saveState = true }save to the start destination and its parents only when the key is not there yet, so the start tab's first saved stack stays and later saves do not replace it; replacing the back stack did not clear it.AuthRoutingTest(failed with the detail route on the stack before the fix; removing eachclearBackStackline fails its test again)../scripts/pre-pushpassed (spotless, lint, R8, unit tests). GitHub Actions does not start (account billing).AuthRoutingEffecttoo was tried in MyTurnTag: it made the fix fail (clearing a route with nothing saved drops null-mapped keys), and a test showed a non-start tab does not bring back the old screen, so only the start tab's graph is cleared.🤖 Generated with Claude Code