https://kotlinlang.org logo
#compose
Title
# compose
i

Ian Lake

10/16/2020, 3:23 PM
PSA for Navigation snapshot users: the Compose Navigation artifact group+name has been changed. It is now
androidx.navigation:navigation-compose:1.0.0-SNAPSHOT
(using build IDs of 6910220 or higher - make sure to switch to the new snapshot URL format ^). Working towards the first alpha 🙂
🎉 10
👏 6
👍 8
✔️ 14
b

bryansills

10/16/2020, 3:34 PM
will it follow the rest of compose's versioning format (ie. the first release could be
alpha06
) or will its versioning be independent of the rest of compose?
i

Ian Lake

10/16/2020, 3:35 PM
It will be independent from the rest of Compose version wise, but will release concurrently with Compose releases (since it depends on compose-runtime, etc)
👍 1
Like the rest of Compose alpha APIs, expect Compose Navigation to change the API surface as we go through alpha02, alpha03, and beyond 🙂
j

John O'Reilly

10/16/2020, 3:59 PM
What repo is that navigation dependency available from?
j

John O'Reilly

10/16/2020, 4:54 PM
perfect, thanks
i

Ian Lake

10/17/2020, 12:39 AM
The
label
you're setting there is the
label
on the top level
NavGraphBuilder
that is what the top level lambda is operating on. I don't think that's what you were trying to do, so it seems like you've gone way down the wrong path. A
OnDestinationChangeListener
added in the graph construction lambda doesn't really make any sense either. Perhaps you should start a new thread that explains what exactly you're trying to do as it isn't quite clear from that code?
j

Javier

10/17/2020, 12:47 AM
Okay, thank you Ian, every graph has a label and I was thinking it was for each composable. Tomorrow I will create a new thread after I try some things with your info, now its too late 💤
i

Ian Lake

10/17/2020, 4:57 AM
The Navigation DSL doesn't let you set the properties for an individual destination as of yet (we know we need to add this, just isn't in yet)
And even then, you'd want to use the
currentBackStackEntryAsState()
method outside of the DSL for making other components recompose when the destination changes as seen in this example: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1602519668357600?thread_ts=1602214739.224900&cid=CJLTWPH7S
👍 1
4 Views