:compass: Compose Navigation : Currently, the `lau...
# compose
t
🧭 Compose Navigation : Currently, the
launchSingleTop
flag works based on the
route
pattern, but not route launched. For eg: if I’ve
composable("page/{pageId}"){...}
and if i
navigate("page/1")
and
navigate("page/2")
with
launchSingleTop = true
, only the
page/1
will load. Is there anyway to make it route based rather than router pattern based ? or How can I handle this scenario?
Sample Code:
i
It sounds like you're just running into this bug with single top: https://issuetracker.google.com/issues/186392337
If you rotate your device, does your argument update to be page 2?
t
Yes, it does.
Any ETA for that issue or workaround for the time being?
i
The actual fix (which is up for review and already gone through a couple dozen passes) is actually a lot more complicated with respect to equality both in the 
MutableStateFlow
 and in the 
Composable
 worlds, but I'm hopefully we'll be able to address the last outstanding issues with it here soon
2