I was thinking about the performance, how much it costs to create a new component every time I want to inject an object from a non koin context? We did this simple solution:
Copy code
inline fun <reified T : Any> getFromKoin(): T {
return KoinJavaComponent.get(T::class.java)
}
@arnaud.giuliani what do you think?
a
arnaud.giuliani
07/10/2019, 8:47 AM
it’s quiet direct to call an object, what is your point here?