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

Sam

09/28/2020, 7:47 PM
How is everyone handling navigation in their app?
j

Javier

09/28/2020, 7:49 PM
You can check the official compose samples, looking for routers in GitHub (I think I saw 2 or 3 libs) or waiting for the navigation component
s

Sam

09/28/2020, 7:50 PM
@Leland Richardson [G] was livestreaming and i asked him, he said native navigation integration is a lower priority
so we might not see it for awhile
j

Javier

09/28/2020, 7:54 PM
It is available in the snapshot repository but it doesn't support args. I don't know what will be its state when they merge the NavArgs PR. https://android-review.googlesource.com/c/platform/frameworks/support/+/1423769
s

Sam

09/28/2020, 7:58 PM
oh very cool!
are there any examples of usage?
j

Javier

09/28/2020, 7:59 PM
in that PR you can see some related PRs. One of them is for samples
And in the NavArgs PR you can see examples for it too
i

Ian Lake

09/28/2020, 8:04 PM
Yep, coming soon
👀 17
a

allan.conda

09/29/2020, 2:36 AM
omg! NavArgs for Compose! ❤️
c

Colton Idle

09/29/2020, 4:38 PM
@Ian Lake any reason why we wouldn't just use AAC ViewModels for data that I would typically put in nav args?
i

Ian Lake

09/29/2020, 4:40 PM
A Bundle of arguments have a completely different use case from non-Parcelable data you'd store in a ViewModel. That's true both in the Compose and existing world, with the same guidance for both