How is everyone handling navigation in their app?
# compose
s
How is everyone handling navigation in their app?
j
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
@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
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
oh very cool!
are there any examples of usage?
j
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
Yep, coming soon
👀 17
a
omg! NavArgs for Compose! ❤️
c
@Ian Lake any reason why we wouldn't just use AAC ViewModels for data that I would typically put in nav args?
i
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