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.
1 year ago
It means your Preview and your tests for a Composable destination should have no dependency or requirement on a NavHost