If I have a class defined in Hilt/Dagger as ```@S...
# dagger
c
If I have a class defined in Hilt/Dagger as
Copy code
@Singleton
class Foo @Inject constructor(private val bar: Bar)
...
and it's also defined in a
@module @installIn(SingletonComponent)
as
Copy code
@Provides
@Singleton
fun provideFoo(bar: Bar){
   return Foo(bar)
}
that's "bad", right? Or is it just duplicative and not necessarily bad? Isn't the whole point for @Provides is to provide creation of classes that you dont own?
n
is it just duplicative and not necessarily bad?
Yes just duplicative
the whole point for @Provides is to provide creation of classes that you dont own?
nod
c
thanks!