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

Not able to navigate to Home screen after clicking the 'Checkout' button. #63 #66

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

PrakashIrom
Copy link

I removed the line popUpTo(navController.graph.startDestinationId) {
saveState = true
} to avoid unwanted behavior when navigating to multiple different screens.

--popUpTo() is beneficial in certain scenarios, particularly:

When navigating to a new feature: If you navigate to a new section of your app (like an authentication flow), you might want to clear the previous screens to prevent back navigation to them.
Preventing memory leaks: If you have screens that hold onto resources or listeners and you want to ensure they're cleared from memory, popUpTo() can help with that.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎉 Boom! Your pull request just flew into the ShopSmart HQ. High fives all around! Our team of tech wizards will check it out and get back to you faster than you can say 'code ninja!' Thanks for leveling up the project!

@yuvrajsinghgmx yuvrajsinghgmx merged commit 8f4b9c1 into yuvrajsinghgmx:master Oct 8, 2024
1 check passed
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