Since Compose Navigation added NavOptions in alpha02, I'm trying to use it but I dont understand how can I specify a popUpTo destination as it requires an Id(Int) and we only have route(string) in the Compose navigation graph. Thanks for your help guys!
Thanks @Ian Lake, I missed that and it solved my issues!
👍 1
David Attias
11/13/2020, 11:08 PM
@Cyril Find I've seen that but it only allows me to browse to the startDestination, my question was about navigating to any route using popUpTo
c
Cyril Find
11/13/2020, 11:14 PM
ah yeah right i didn't look at the link, that's what i used first too but i changed it since for start destination it simpler this way but i forgot to change it back for you 😄 ... anyway it's solved 👍
i
Ian Lake
11/13/2020, 11:16 PM
Yeah, if you're popping the the start destination, you're using the ID (and can save duplicating your route and keeping that in sync), but for anything else, you'd want to use the route version.