what's the purpose of binding something in a Modul...
# dagger
what's the purpose of binding something in a Module that's installed in the SingletonComponent? this doesn't necessarily make the thing that's binded a Singleton itself, right? Like in Now In Android all of the Repositories are installed in the SingletonComponent within DataModule.kt but they're not scoped or annotated as Singletons. So what is the scope of these repositories, and what's the purpose of even installing them in the SingletonComponent instead of say, any other component?
It makes it singleton as basically you're instantiating the implementation but binding the interface to the Singleton component
I believe it is because each repository implementatoon is stateless so there is no need to hold the reference for that long
Installing it in the singleton component might be just a convenient way to access the dependency in each component like service or activity