Jacob Hughes
03/08/2022, 8:30 AMunloadKoinModules
is it required that you pass in the same instances of the module you loaded? Or can you generate the module you would like to unload?
E.g would this work:
internal fun getKoinModule(useMocks: Boolean) = module {
single { Log(testing = useMocks) }
}
loadKoinModules(getKoinModule(true))
unloadKoinModules(getKoinModule(true))