Skip to content

Timelogic feature will build every enter to StartScreen? #1

Description

@yandroidUA

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions