Colton Idle
02/13/2023, 3:51 PMNicholas Doglio
02/13/2023, 3:57 PMJoseph Hawkes-Cates
02/13/2023, 4:49 PMLandry Norris
02/13/2023, 5:03 PMColton Idle
02/13/2023, 5:17 PMval navController = rememberAnimatedNavController()
navController.addOnDestinationChangedListener(NavController.OnDestinationChangedListener { controller, destination, arguments ->
Log.e("LEARNING", "route: ${destination.route}")
})
Ian Lake
02/13/2023, 6:06 PMaddOnDestinationChangedListener
as part of composition (which is going to give you more and more copies if you ever recompose that function): https://developer.android.com/reference/androidx/navigation/NavController#currentBackStackEntryFlow()