Closed mainrs closed 2 months ago
Hi @mainrs
You need to define a start for your graph at the graph level.
When using ExternalModuleGraph
, the start will be ignored. I will improve this so that I throw an helpful error in the future.
In any case, to do that, do:
@NavHostGraph
annotation class MainGraph {
@ExternalModuleDestinations<ContactdetailsModuleDestinations>
@ExternalModuleDestinations<ContactlistModuleDestinations>(
[
OverrideDestination(
destination = ContactListScreenDestination::class,
with = ExternalDestination(start = true),
)
]
)
companion object Includes
}
You don't want feature modules to define themselves as the start, we just want to expose graphs and let the importing module decide what to us as the start of the graph.
Let me know if this helps!
Ahhhh, that's how it works! Thank you very much!
The error I get is: