mohamed rejeb
09/19/2024, 11:25 AMIvan Matkov
09/19/2024, 11:29 AMid
initially was about xml resource id that is simply not a case for compose and/or multiplatform.
For compose navigation unique id is route
, id for android is maintained as just hash from it.
so we can't pop all graph properlyCould you please clarify? All methods have overloads for route, int id is not required for any operation AFAIK
mohamed rejeb
09/19/2024, 11:34 AMIvan Matkov
09/19/2024, 11:43 AMmohamed rejeb
09/19/2024, 11:44 AMpopUpTo(navHostController.graph.id)
Ivan Matkov
09/19/2024, 11:46 AMpopUpTo(navHostController.graph.route)
doesn't work for you?mohamed rejeb
09/19/2024, 11:46 AMmohamed rejeb
09/19/2024, 11:50 AMIvan Matkov
09/19/2024, 11:51 AMNavHost(route)
arg (null by default)mohamed rejeb
09/19/2024, 11:52 AMIvan Matkov
09/19/2024, 11:55 AMid
is just hash from this route on AndroidKonstantin Tskhovrebov
09/19/2024, 11:55 AMnavController.navigate(NewRoot) {
popUpTo(navController.graph.id) {
inclusive = true
}
}
Ivan Matkov
09/19/2024, 11:56 AMid
in common. It's the topic of this threadKonstantin Tskhovrebov
09/19/2024, 11:57 AMIvan Matkov
09/19/2024, 11:58 AM@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
and not supposed to be used externally. Not sure why IDE doesn't complainKonstantin Tskhovrebov
09/19/2024, 11:58 AMIvan Matkov
09/19/2024, 11:59 AM