Danny Preussler
1 min readJun 6, 2020

--

valid point, viewmodels right now need this.

Of course we have sth like:

@Binds @IntoMap @ViewModelKey(MyViewModel::class)

It is another uglyness of Dagger we have to live with. But I'd say this has not much to do with injecting lists or maps of sth, it is just a workaround to make viewmodels work together with Dagger at least until Hilt comes out

--

--

Danny Preussler
Danny Preussler

Written by Danny Preussler

Android @ Soundcloud, Google Developer Expert, Goth, Geek, writing about the daily crazy things in developer life with #Android and #Kotlin

No responses yet