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

Colton Idle

07/20/2021, 1:18 PM
Looking at compose navigation docs. They say
Testing
We strongly recommended that you decouple the Navigation code from your composable destinations to enable testing each composable in isolation, separate from the NavHost composable.
What does that last bit mean? Decouple nav code from composables EXCEPT the navHost composable (since there's no real way to decouple that, right?). Just checking because I'm not familiar with the "separate from" terminology.
i

Ian Lake

07/20/2021, 1:35 PM
It means your Preview and your tests for a Composable destination should have no dependency or requirement on a NavHost
👍🏼 1
👍 1
2 Views