Sep 27, 2024
This is a good initial example that illustrates how screens should be when using Jetpack Navigation: isolated and reusable.
I've seen other approaches where functions receive the NavController as a parameter, which breaks these principles.