Join Slack
Powered by
How do you manage navigation in a Compose app? I t...
# compose
m
Mehdi Haghgoo
09/17/2020, 5:27 AM
How do you manage navigation in a Compose app? I think I can make startActivity and setResult work, but tends to be quite difficult.
i
Ian Lake
09/17/2020, 5:39 AM
The Compose+Navigation integration that is in works now (
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1600283358142300?thread_ts=1600283358.142300&cid=CJLTWPH7S
) would allow you to use Navigation's API for returning a result:
https://developer.android.com/guide/navigation/navigation-programmatic#returning_a_result
❤️ 1
Ian Lake
09/17/2020, 5:48 AM
With
observeAsState()
on the result, you should just automatically recompose with a result once it is available
❤️ 1
2
Views
Open in Slack
Previous
Next