Hey all! Does it make any sense to use Inject (mem...
# android
n
Hey all! Does it make any sense to use Inject (member injection) in a ViewModel or should be only used in Activities and Fragments?
g
Not a Kotlin related question. In general no, you should use constructor injection, same for FactoryProvider and multibindings, but I would instead just google it or ask on StackOverflow
j
When sometimes you need late injection with parameters, i think there is no problem with that. In Koin, you implement interface and you can late inject with parameters (without involving android code)