Fix bottom navigation back stack accumulation (#2133)

This commit is contained in:
Jeremiah K 2025-06-16 11:53:14 -05:00 committed by GitHub
parent 00295c969e
commit 3e81a4dd34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,7 +201,6 @@ fun MainScreen(
// Pop up to the start destination of the graph to
// avoid building up a large stack of destinations
// on the back stack as users select items
destination.route
popUpTo(navController.graph.findStartDestination().id) {
saveState = true
}