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

Use Destination class to store navigation routes #302

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

SuhasDissa
Copy link
Member

Hi there!

I created a Destination class to hold all the navigation routes. This is a much better way to do it, as it's less prone to bugs (typos, etc.).

I also suggest that you avoid passing NavigationController down the composable functions. Instead, I suggest that you handle all the navigation logic inside the NavigationHost. This will help to keep your code clean and easy to maintain. If you decide to change the navigation logic in the future, you'll only have to make changes in one place.

I hope this helps!

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

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

Thanks!

@Bnyro Bnyro merged commit 8085e90 into you-apps:master Jul 27, 2023
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