. When I query the BackStackEntry from NavController, I would like to use navController.getBackStackEntry("`routeX` ") without optional param as optional params can grow in future. But current api fails as it expects optional param as well. Any reason why the route should match optional params on query?
a
allan.conda
07/29/2021, 8:35 AM
The route you’ll get is
routeX?argA={argA}&ArgB={ArgB}
and no real values. That one is fixed can be declared once and reused.
allan.conda
07/29/2021, 8:36 AM
I’m not sure, but two routes with different arguments is probably considered different and unique routes. 🤔
k
Karthi
07/29/2021, 8:37 AM
yes, you are right about
routeX?argA={argA}&ArgB={ArgB}
, I edited question. But my question, should it still considered as different routes based on optional params