Sobes.tech
Junior — Middle

Should you explicitly inform Dagger about the components to be injected?

sobes.tech AI

Answer from AI

Yes, in Dagger, it is necessary to explicitly specify the components that should be injected. Components in Dagger serve as containers for dependencies and manage their lifecycle. For Dagger to generate code for injection, components need to be declared and linked with modules and classes where injection is required. Without explicit declaration of components, Dagger will not be able to resolve dependencies correctly.