ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Follow publication

Published in ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Written by ashdavies ™

Android & Kotlin @GoogleDevExpert , failed blogger, public speaker, maker (and breaker) of shiny things @snappmobile_io (he/him)

Responses (2)

Write a response

IMHO, this new addition to Dagger, so called dagger-android, solves a non-existing problem.
If you do injection like shown at the beginning of this article, then you’ll indeed end up with ugly components instantiation in every…

--

>and in some cases will even retain an instance of the component to retain it through orientation change which is not recommended!
Who does not recommend this and why?

--