Arnaud Giuliani
Dec 10, 2020

--

By inject () with a ViewModel doesn’t bind it to the Android ViewModelFactory. Your VM instance so 't be retained then

--

--

Arnaud Giuliani
Arnaud Giuliani

Written by Arnaud Giuliani

Lead of #Koin framework (insert-koin.io) - Co-founder of Kotzilla (kotzilla.io) - Google Dev Expert #Kotlin - #AndroidDev

No responses yet