Hi guys, trying to use ActivityRetainedScope in DI...
# kodein
v
Hi guys, trying to use ActivityRetainedScope in DI, but when i try to get LoginViewModelImpl from Compose function i got an error:
No binding found for bind<LoginViewModel> { ? { ? } }
. If I remove scoped all works fine, code snippet below. Any ideas?
r
Hi. I didn't debug your issue, but on my sample project I fixed it by using a
retainedDI
container instead of a retained scope. I would need to investigate this further to now why this is not working with Compose.