Tagakov/modules-and-dagger

Timelogic feature will build every enter to StartScreen?

yandroidUA opened this issue · 0 comments

Hi.
Thanks for your lecture and this example. But I have one question:
Every time when I'm navigating / creating StartScreen TimelogicComponent will build from scratch?

https://github.com/Tagakov/modules-and-dagger/blob/master/feature-startscreen/src/main/java/com/tagakov/startscreen/StartScreenFragment.kt#L38

I'm start using same architecture, but I have module Core, Core-api and Core-implementation.
I'm using core like Timelogic in this example, but in many features ( 5 - 10 ) and each navigation to new feature my core will build new instance and it's not very lighweigth, because of Retrofit and other libraries.

So I'm right, that Timelogic will build in each StartScreen's onCreate ?
And how be in my case with core, that i'm using in many features to fetch data?