What is the use case of declaring subcomponent in dagger module annotation?. e.g.
@Module(subcomponents = ChildComponent.class)
public class ModuleB
I have read the documentation, but couldn't find any example of usage.
Any {@link Subcomponent}- or {@code @ProductionSubcomponent}-annotated classes which should be
* children of the component in which this module is installed. A subcomponent may be listed in
* more than one module in a component.