sanogueralorenzo
06/10/2019, 6:01 AMloadKoinModules and using a top level by lazy to avoid double injection on screen rotation.
For ex.
fun injectFeature() = loadFeature
private val loadFeature by lazy {
loadKoinModules(
viewModelModule,
useCaseModule,
repositoryModule,
dataSourceModule,
networkModule,
cacheModule
)
}
I would then call injectFeature() in the first screen that gets it.
Any feedback on the above from the channel?